Sorry, I missed a '/' ...
It should have been
cat filename | sed 's/ word / /g;s/ word././g'
In the command :
s/word1/word2/g
s - means search for a string
word1 - is the search string
word2 - is the replace with string
g - indicates, do replacement of word1 with word2 globally
A semi-colon(

is used to a separator between two command within sed ...
HTH
Sathyaram
Quote:
Originally posted by sunragh
i have a file by name test, which contains words like raju, raju12, raju123.
when i run this command
# cat test |sed 's/raju/g;s/raju././g' >test1
the output is
sed: command garbled: s/raju/g;s/raju././g
I am using solaris-8.
|