The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 11-20-2006
gogogo gogogo is offline
Registered User
  
 

Join Date: Oct 2006
Posts: 18
new lines symbols in sed?

I want to edit a huge script file using sed. How can I add the new lines symbols in the red colored places?

sed -e "s/test -z "$x"/if test -z "$x" then echo -1; \n else \n/g"