HTTrack Website Copier
Free software offline browser - FORUM
Subject: Console scripting
Author: Rob
Date: 02/25/2005 14:04
 
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
 
Reply


All articles

Subject Author Date
Console scripting

02/25/2005 14:04
Re: Console scripting

02/26/2005 12:53




f

Created with FORUM 2.0.11