Re: [newbie] automatic batch editing of files

2004-06-19 Thread Richard Urwin
On Thursday 17 Jun 2004 4:46 pm, David E. Fox wrote: It reminds me of assembly courses I took in the 80s where the instructor was quick to point out that a MOV instruction didn't go out and physically move the bits from point A to point B, but did a copy. The PDP-8 had no MOV instruction, but

Re: [newbie] automatic batch editing of files

2004-06-17 Thread David E. Fox
On Tue, 15 Jun 2004 08:40:04 -0500 Mikkel L. Ellertson [EMAIL PROTECTED] wrote: head: +2: No such file or directory I'm getting the same behavior here in 10.0. It seems a more careful reading of the manual page (man head) is needed. Under -n it says that if you negate the # of lines you get

Re: [newbie] automatic batch editing of files

2004-06-17 Thread David E. Fox
On Tue, 15 Jun 2004 11:31:44 -0400 Bill Shirley [EMAIL PROTECTED] wrote: Ah, but in your original post you said remove. None of the suggestions you received removed the lines; they just copied them to a different file. True, but he could just mv the edited file back to the original.

Re: [newbie] automatic batch editing of files

2004-06-16 Thread Mikkel L. Ellertson
Bill Shirley wrote: Maybe I didn't pay close enough attention, but it looked like you guys were using 'head' and 'tail' to output to a *.txt file leaving the original intact. Yes, the end result IS the important thing. However, not saying exactly what you want to do leads to misinterpretation.

Re: [newbie] automatic batch editing of files

2004-06-15 Thread magnet
On Tuesday 15 Jun 2004 9:09 am, Richard Urwin wrote: On Tuesday 15 Jun 2004 4:11 am, Mikkel L. Ellertson wrote: David E. Fox wrote: On Mon, 14 Jun 2004 16:14:04 +0100 magnet [EMAIL PROTECTED] wrote: each file and then save each with a .txt suffix. Where do I start with this?

Re: [newbie] automatic batch editing of files

2004-06-15 Thread Mikkel L. Ellertson
Richard Urwin wrote: On Tuesday 15 Jun 2004 4:11 am, Mikkel L. Ellertson wrote: David E. Fox wrote: On Mon, 14 Jun 2004 16:14:04 +0100 magnet [EMAIL PROTECTED] wrote: each file and then save each with a .txt suffix. Where do I start with this? Since the # of lines you want to remove are known, I'd

RE: [newbie] automatic batch editing of files

2004-06-15 Thread Bill Shirley
] Subject: Re: [newbie] automatic batch editing of files On Tuesday 15 Jun 2004 9:09 am, Richard Urwin wrote: On Tuesday 15 Jun 2004 4:11 am, Mikkel L. Ellertson wrote: David E. Fox wrote: On Mon, 14 Jun 2004 16:14:04 +0100 magnet [EMAIL PROTECTED] wrote: each file

Re: [newbie] automatic batch editing of files

2004-06-15 Thread Mikkel L. Ellertson
Bill Shirley wrote: Ah, but in your original post you said remove. None of the suggestions you received removed the lines; they just copied them to a different file. No, they copied all but the lines she wanted removed to a different file. In effect, creating a new file that is the original

RE: [newbie] automatic batch editing of files

2004-06-15 Thread Bill Shirley
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Mikkel L. Ellertson Sent: Tuesday, June 15, 2004 11:50 AM To: [EMAIL PROTECTED] Subject: Re: [newbie] automatic batch editing of files Bill Shirley wrote: Ah, but in your original post you said remove. None

Re: [newbie] automatic batch editing of files

2004-06-14 Thread Mikkel L. Ellertson
magnet wrote: Hi all, I require some pointers for the following problem please: I have 100+ files of html code, ie: page0001.htm page0002.htm page0003.htm etc... but I need to remove the first 20 lines and the last 17 lines from each file and then save each with a .txt suffix. Where do I start

Re: [newbie] automatic batch editing of files

2004-06-14 Thread magnet
On Monday 14 Jun 2004 7:08 pm, Mikkel L. Ellertson wrote: magnet wrote: Hi all, I require some pointers for the following problem please: I have 100+ files of html code, ie: page0001.htm page0002.htm page0003.htm etc... but I need to remove the first 20 lines and the last 17 lines from

Re: [newbie] automatic batch editing of files

2004-06-14 Thread Mikkel L. Ellertson
magnet wrote: On Monday 14 Jun 2004 7:08 pm, Mikkel L. Ellertson wrote: magnet wrote: Hi all, I require some pointers for the following problem please: I have 100+ files of html code, ie: page0001.htm page0002.htm page0003.htm etc... but I need to remove the first 20 lines and the last 17 lines

Re: [newbie] automatic batch editing of files

2004-06-14 Thread Richard Urwin
When sed is not quite powerful enough, you should start learning awk. Other commands that are very useful are cut and tr. -- Richard Urwin Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club

Re: [newbie] automatic batch editing of files

2004-06-14 Thread David E. Fox
On Mon, 14 Jun 2004 16:14:04 +0100 magnet [EMAIL PROTECTED] wrote: each file and then save each with a .txt suffix. Where do I start with this? Since the # of lines you want to remove are known, I'd suggest using the script, but use 'head' and or 'tail'. Those are designed for this purpose.

Re: [newbie] automatic batch editing of files

2004-06-14 Thread Mikkel L. Ellertson
David E. Fox wrote: On Mon, 14 Jun 2004 16:14:04 +0100 magnet [EMAIL PROTECTED] wrote: each file and then save each with a .txt suffix. Where do I start with this? Since the # of lines you want to remove are known, I'd suggest using the script, but use 'head' and or 'tail'. Those are designed