sed: -e expression #1, char 3: extra characters after command

I’m totally new (starting from 0) to the world of Linux, programming and ‘ask ubuntu’.I have just started experimenting as I’m working on a uni project that requires me to.

I am trying to run an example :

sed '$  LNZs/.*/N_Z  = 1/' <>$  FTNZ 

and I keep getting the error in the title.

I would appreciate any help as I couldn’t figure out from answers to previous questions having close to ‘0’ basic knowledge atm.

Thanks

sed: -e expression #1, char 3: extra characters after command

I’m totally new (starting from 0) to the world of Linux, programming and ‘ask ubuntu’.I have just started experimenting as I’m working on a uni project that requires me to.

I am trying to run an example :

sed '$  LNZs/.*/N_Z  = 1/' <>$  FTNZ 

and I keep getting the error in the title.

I would appreciate any help as I couldn’t figure out from answers to previous questions having close to ‘0’ basic knowledge atm.

Thanks

Does a target have total cover from a ranged attacker positioned on an opposite corner of a hallway?

Consider the diagram below:

 N    WWWWWWW   W = Wall W E   OOOOOOO   O = Open Space  S    OAWWWTO   A = Attacker                 T = Target 

Does the target have total cover from the attacker?

The following quote has the relevant rules:

To determine whether your target has cover from your ranged attack, choose a corner of your square. If any line from this corner to any corner of the target’s square passes through a square or border that blocks line of effect or provides cover, or through a square occupied by a creature, the target has cover (+4 to AC).

[…]

Total Cover: If you don’t have line of effect to your target (that is, you cannot draw any line from your square to your target’s square without crossing a solid barrier), he is considered to have total cover from you. You can’t make an attack against a target that has total cover.

Source: Core Rulebook pg.195-196

My interpretation:

  • Every corner of the attacker’s square has at least one line to one of the target’s square’s corners passing through the wall. The target has cover.
  • A line can be traced from either of the northern corners of the attacker to either of the northern corners of the target. This line runs parallel to the wall but does cross it. The target does not have total cover.

Is this interpretation of the rules correct?

Use dedicated nameserver for particular domain

How can I configure Ubuntu 18.04 LTS that’s using systemd-resolved to use a particular nameserver for a certain domain?

When I login to my customer VPN I want all .customer.com go over the VPN to their nameserver 10.20.30.40 but all other DNS should still go to my LAN nameserver.

I used to use dnsmasq.conf with server=... directive in the previous Ubuntu versions but that’s now been replaced with systemd-resolved and I don’t know how to do it.

Any ideas?

Is the ability to telepathically communicate with a Familiar only one-way?

The most recent PHB errata clarified that the Steed generated by Find Steed can communicate telepathically with its summoner.

In the next-to-last paragraph, “communicate with it” is now “communicate with each other.”

However, there was no corresponding change in the text of Find Familiar, which still states that the summoner can “communicate with it.” Does this lack of similar change indicate that the telepathic communication with Find Familiar is one-way?

Netplan error static IP

Hi guys someone who can help me please.

I want to put a fixed IP address using Ubuntu Server 18.04, but it gives me the following error.

sudo netplan apply

Invalid YAML at /etc/netplan/50-cloud-init.yaml line 9 column 0: found a tab character that violate intendation

The file is the next…

This file is generated from information provided by

the datasource. Changes to it will not persist across an instance.

To disable cloud-init’s network configuration capabilities, write a file

/etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:

network: {config: disabled}

network: ethernets: enp0s3: dhcp4: no dhcp6: no addresses: [192.168.1.67/24] gateway4: 192.168.1.254 nameservers: addresses: [8.8.8.8,8.8.4.4] version: 2

I can’t find a solution.

Thanks for your time.

Revert NVIDIA driver on low-graphics mode

I wanted to update the graphics driver on a Ubuntu laptop so I went to the Additional Drivers menu and selected the newest driver to install (the GPU is an NVIDIA GTX 1050 TI). Now, when I start the laptop, it tells me that the laptop is running on low-graphics mode and I can’t get to the desktop. How do I reinstall the old driver to get back to where I was before?

How does the Duergar Magic shrink/enlarge ability work with rage?

Is the Duergar’s ability to shrink/enlarge considered a spell?

How does that combo off with the barbarian’s “Rage” ability?

  1. Am I able to do this after I go into a rage?
  2. Does it cancel before I go into a rage?
  3. Can this ability be counterspelled?
  4. Does it require concentration to maintain? (I read on a previous note it doesn’t require it and doesn’t require ingredients to use)