The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



Thread: sed help
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 12-08-2004
bhargav's Avatar
bhargav bhargav is offline
Registered User
 

Join Date: Sep 2004
Location: USA
Posts: 511
i do some like this ...

echo "" >> file1 puts the new line at the end of the file.



$ cat abcd.txt
abcde
abdcrewuroewr
abababbaaba
abbabbaba$ echo "" >> abcd.txt
$ cat abcd.txt
abcde
abdcrewuroewr
abababbaaba
abbabbaba
$ sed '${$a \ }' abcd.txt
$ sed 's/a/b/g/ abcd.txt
>
$ sed 's/a/b/g' abcd.txt
bbcde
bbdcrewuroewr
bbbbbbbbbbb
bbbbbbbbb
$
Reply With Quote