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 > UNIX for Dummies Questions & Answers
.
google unix.com




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

Join Date: Mar 2004
Posts: 301
use line numbers anyway instead of g...
ex ,. try
1,$s/a/b/
if not
use
1,(n)s/a/b/
that should work.. then you need to figure out why the g flag is not working.. it may be that you are not using sed according to the file syntax... it could be you need to do something like this s/\<a\>/b/ i can't see the file so I can't tell you.. try this site for help
http://sed.sourceforge.net
moxxx68