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
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
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.
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.
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?
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
]
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
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
-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
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
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
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
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
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.
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
15 matches
Mail list logo