The UNIX and Linux Forums  

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




Thread: sed error
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 04-28-2008
f_o_555 f_o_555 is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 66
sed error

in a bash shell I have the following

S00="BLOCK-NAMES /ELM1 /SAUT0 /FIT00 FOR ELMT,SAMPLE,FIT"
S01="BLOCK-NAMES /ELM1 /SAUT0 /FIT01 FOR ELMT,SAMPLE,FIT"

sed "s/'$S00'/'$S00'/g" pb206.cnt > tmp

sed commplains and says
sed: -e expression #1, char 29: Unknown option to `s'

Can anybody help?
Thank you!!!