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 07-21-2005
Scarlos Scarlos is offline
Registered User
  
 

Join Date: Jul 2005
Posts: 9
Make sed ignore lines

Hi

I use sed in a script for severall changes in files. I whish one of the substitutions I made to be aplied to every line that has the word "scripts" with the exception for the ones that start with "rsh", wich I wish sed to ignore . Is this possible? If yes, how can I do it?

The substitution I made is this one:

s/\(.*scripts\)/$BUSINESS_SCRIPTS/

Thank you.

Carlos