airblaine has asked for the wisdom of the Perl Monks concerning the following question:
I have multiple txt files in a directory. I need to extract
the first four lines of each file and output/appened it with the
file name to another file. This should be easy, right? I can
do it on one line, I can do it with a search string, but I
can't find how to just pull four lines out! Argghhh... Thank
You in advance...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Extract lines and output...
by jeroenes (Priest) on Oct 10, 2001 at 00:09 UTC | |
Re: Extract lines and output...
by Fletch (Bishop) on Oct 10, 2001 at 00:57 UTC | |
by belden (Friar) on Oct 10, 2001 at 07:51 UTC | |
by tachyon (Chancellor) on Oct 10, 2001 at 08:17 UTC | |
by broquaint (Abbot) on Oct 10, 2001 at 13:42 UTC | |
by belden (Friar) on Oct 10, 2001 at 08:58 UTC | |
by tachyon (Chancellor) on Oct 10, 2001 at 11:10 UTC | |
Re: Extract lines and output...
by cjensen (Sexton) on Oct 10, 2001 at 01:45 UTC | |
by airblaine (Acolyte) on Oct 10, 2001 at 19:00 UTC |
Back to
Seekers of Perl Wisdom