From: Adam Hanel (hanela@BILLINGS.K12.MT.US)
Date: Wed Mar 19 2003 - 18:16:53 EST
Thank you!
This worked perfect.
-Adam
-----Original Message-----
From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On Behalf Of
Sunder Iyengar
Sent: Wednesday, March 19, 2003 3:11 PM
To: aix-l@Princeton.EDU
Subject: Re: Shell stripting
sed -n '1,69p' input-file > output-file
sed -n '70,$p' input-file > output-file
Sunder.
-----Original Message-----
From: Adam Hanel [mailto:hanela@BILLINGS.K12.MT.US]
Sent: Thursday, 20 March 2003 07:26
To: aix-l@Princeton.EDU
Subject: Re: Shell stripting
What if the file grows periodically? Say 5-10 lines a week. I would still
only want the first 69 lines, then the rest of the file, split into two
separate files.
-Adam
-----Original Message-----
From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On Behalf Of Matt
Lawrence
Sent: Wednesday, March 19, 2003 11:59 AM
To: aix-l@Princeton.EDU
Subject: Re: Shell stripting
On Wed, 19 Mar 2003, Adam Hanel wrote:
> I need to split a 901 line file, into two files. One file with the first
69
> lines, and the second file with the remaining 832 lines.
head -69 <file>
tail -832 <file>
-- Matt
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:41 EDT