Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
sed :Unterminated s command
Name: Bala123 Date: November 29, 2008 at 03:15:43 Pacific OS: Unix CPU/Ram: Core 2 Duo, 1GB Product: Intel
Comment:
Hi
I'm getting this unterminated s command prob. #echo $out ==> Unix Command and then a newline character (When i tried seeing octal dump by using "echo $out | od -bc"), it showed a newline character
#echo $string ==> "Welcome.Unix Command" and then a newline at the end..
#echo $string | sed "s/$ban//g"
this command is giving "unterminated s command" bcoz shell is interpreting the newline character.. how can i prevent this..
Also, can i remove a newline character at the end of a string using sed..??
Summary: Thanks, Nails! Works great to append the line feed onto the source file. If I could ask a follow-up question: I'd like to eliminate as many intermediate files as possible. The input data file is a...
Summary: sed -n 's/abc/xyz /' /dev/logs/sample.txt After executing the above command, file "sample.txt" does not reflect the updated 'xyz' value in place of 'abc'. Can anyone tell me why ?...