Hi
I am trying to write a pipeline which updates the content
of a file by replacing all the mathches of the word 'and'
with the symbol '&' and replaces the end of each line with
my name. This is what I have so far:
sed -i 's/and/\&/g;s/$/'`whoami`'/g' ./foo && echo YES ||
echo NO
But this only places my name at the end of each paragraph.
Please help.
Thanks Rob
|