Mailinglist Archive: opensuse (3419 mails)
| < Previous | Next > |
[opensuse] Re: Another grep question
- From: James Hatridge <James.Hatridge@xxxxxx>
- Date: Mon, 9 Apr 2007 20:26:46 +0200
- Message-id: <200704092026.46202.James.Hatridge@xxxxxx>
Hi Thomas et al..
This was what I was looking for.
Thanks,
JIM
On Monday 09 April 2007 00:59, Thomas Hertweck wrote:
> 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....
> >
> > How can I do this?
>
> $> paste - - - - < file.in > file.out
>
> Th.
--
Jim Hatridge
Linux User #88484
Ebay ID: WartHogBulletin
------------------------------------------------------
WartHog Bulletin
Info about new German Stamps
http://www.WartHogBulletin.de
Many Enemies -- Much Honor!
Anti-US Propaganda stamp collection
http://www.manyenemies-muchhonor.info
An American in Bavaria
http://www.gaubodengalerie.de
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
This was what I was looking for.
Thanks,
JIM
On Monday 09 April 2007 00:59, Thomas Hertweck wrote:
> 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....
> >
> > How can I do this?
>
> $> paste - - - - < file.in > file.out
>
> Th.
--
Jim Hatridge
Linux User #88484
Ebay ID: WartHogBulletin
------------------------------------------------------
WartHog Bulletin
Info about new German Stamps
http://www.WartHogBulletin.de
Many Enemies -- Much Honor!
Anti-US Propaganda stamp collection
http://www.manyenemies-muchhonor.info
An American in Bavaria
http://www.gaubodengalerie.de
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |