[plug] sed or awk

Rob Dunne robd at anville.wa.cmis.csiro.au
Sun Jan 14 23:55:04 WST 2001


Hi List,
         can anyone tell me how to replace repeated occurances of
that same pattern with a different replacement pattern?

ie 
the first  "1" is replaced with "1"
the second "1" is replaced with "2"
the third  "1" is replaced with "3"

-- 
 Rob Dunne         Fax: +61 8 9333 6121     Tel: +61 8 9333 6178
 CSIRO Mathematical and Information Sciences
 Leeuwin Centre for Earth Sensing Technologies 
 Private Bag 5, P.O., Wembley, Western Australia, 6013         
 http://matilda.vu.edu.au/~dunne  Email: Robert.Dunne at cmis.csiro.au

        Java has certainly revolutionized marketing and litigation.




More information about the plug mailing list