why "extra characters after command" error shown for the sed command line shown?

Riyas S

I have given the command line as shown below,

command:

sed '/dump 0 $2 $3 $4 $5/dump 1 $2 $3 $4 $5/g' base_file.properties

error showing

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

while putting "s" option as

 sed 's/dump 0 $2 $3 $4 $5/dump 1 $2 $3 $4 $5/g' base_file.properties

error is showing as

sed: -e expression #1, char 32: unknown option to `s'

devnull

It appears that some of the variables are expanding to values that contain a /. Use a different delimiter that isn't contained in any of the variables, e.g.

sed 's@dump 0 $2 $3 $4 $5@dump 1 $2 $3 $4 $5@g' base_file.properties

(Your first command isn't a valid sed expression.)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

sed error complaining "extra characters after command"

From Dev

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

From Dev

folder not shown when being created by command line

From Dev

UITextView last line is not shown

From Dev

Why is not the :after image shown

From Java

Why are usernames and images not shown?

From Dev

Why both the forms are shown

From Dev

Why are "<" , ">" , " and ' shown in this XML example?

From Dev

Why the error message is shown to the user even if error is catched?

From Dev

ViewExpiredException error page not shown

From Dev

ViewExpiredException error page not shown

From Dev

javascript error is shown in the browser

From Dev

Duplicate ERROR is Not shown In mongodb

From Dev

No line number shown for run-time error from Python module

From Dev

Why is this error shown when the parent exits before the child thread?

From Dev

New Line Character is not shown in TextBox

From Dev

Why is the 'prompt' of the android spinner not shown?

From Dev

why JPanel is not being shown in JFrame?

From Dev

Why is my spinner not shown in Turbolinks?

From Dev

Why is sshfs not shown in /proc/filesystems?

From Dev

why the output shown like that ? java

From Dev

Why is the text not shown below the image?

From Dev

Why gets method is not shown in autocomplete?

From Dev

This code is no working and error is shown at compilation?

From Dev

Codeigneter 404 error always shown

From Dev

Yellow error in Eclipse, but no problems shown

From Dev

No error shown when updating and deleting

From Dev

Why are some processes shown in pstree not shown in ps -ef?

From Dev

On Mac, how to open a file from command line and have it shown in an existing Emacs window?

Related Related

HotTag

Archive