in reply to Deleting first and last TWO(2) lines of a text file
This will also keep the old version around as <input.file>.oldperl -i.old -ne 'print unless $.==1 or eof' <input-file>
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Deleting first and last lines of a text file
by vsmeruga (Acolyte) on May 16, 2014 at 09:47 UTC | |
by 2teez (Vicar) on May 16, 2014 at 10:06 UTC | |
by vsmeruga (Acolyte) on May 16, 2014 at 10:21 UTC | |
by 2teez (Vicar) on May 16, 2014 at 11:04 UTC | |
by vsmeruga (Acolyte) on May 16, 2014 at 13:33 UTC | |
by vsmeruga (Acolyte) on May 16, 2014 at 10:13 UTC | |
by 2teez (Vicar) on May 16, 2014 at 10:53 UTC | |
Re^2: Deleting first and last lines of a text file
by vsmeruga (Acolyte) on May 16, 2014 at 09:36 UTC |
In Section
Seekers of Perl Wisdom