bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: split, csplit or nl ?


From: Philip Rowlands
Subject: Re: split, csplit or nl ?
Date: Tue, 8 Mar 2005 06:44:27 +0000 (GMT)

On Mon, 7 Mar 2005, Olivier Delhomme wrote:

>I have a specific problem with a file that i want to split :
>I would like to split the file in 'x' pieces for exemple. But i would
>like to have line one in file one, line two in file two and so on then
>line x in file x and line x+1 in file one ...

sed -ne '1~2p' < input > oddlines
sed -ne '2~2p' < input > evenlines


Cheers,
Phil




reply via email to

[Prev in Thread] Current Thread [Next in Thread]