[plug] perl program to strip blank lines from a file
James Devenish
devenish at guild.uwa.edu.au
Mon May 17 15:42:42 WST 2004
In message <courier.40A86B90.00003CA9 at wasp.net.au>
on Mon, May 17, 2004 at 03:36:47PM +0800, David Buddrige wrote:
> I am tryin to put together a program which will strip blank lines out of a
> text file. To this end, I have written the following perl program;
No problem learning Perl but just for the references files, you can
also use one-liners these:
grep -v '^$'
sed '/^$/d'
Note: some 'blank lines' might actually contain whitespace, depending on
the nature of your files.
More information about the plug
mailing list