On Sun, 2007-04-08 at 20:49 +0200, James Hatridge wrote:
> I'm not sure if this is a grep or awk question. I have a file with many 
> records of 4 lines each in it. Like this:
> 
> 1
> 2
> 3
> 4
> 1
> 2
> 3
> 4
> etc, etc
> 
> I need the file to look like this:
> 
> 1 tab 2 tab 3 tab 4
> 1 tab 2 tab 3 tab 4
> etc etc....

I imagine sed is your friend.  Replace the newline character with the
tab character.  Don't ask me the syntax though.

Of course, that doesn't take care of the groups for three though...

Hans

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to