View Single Post
Old Nov 18th, 2006, 11:00 AM   #3
Eric the Red
Hobbyist Programmer
 
Eric the Red's Avatar
 
Join Date: Feb 2006
Posts: 214
Rep Power: 0 Eric the Red is an unknown quantity at this point
Thanks for you help. One more quick question

If I were to use that sed command to only edit let's say the second or third (Edit**) delimiter ':'. How would I do that?

The online manual doesn't say too much about that:

Sed Addresses

     An address is not required, but if specified must be a number (that
     counts input lines cumulatively across input files)

So I tried doing:

sed 2's/:/,/' file1 file2 > tempit.ca

That means the second line. However, I need the second field.
__________________
Death smiles at us all. All a man can do is smile back.

Last edited by Eric the Red; Nov 18th, 2006 at 11:39 AM.
Eric the Red is offline   Reply With Quote