[Info-vax] Removing blank lines from text files

Bob bobkaplow at yahoo.com
Sat Jun 15 18:49:00 EDT 2019


On Saturday, June 15, 2019 at 5:36:25 PM UTC-5, Craig A. Berry wrote:
> There is a very simple solution and I've already posted it. Use any
> language that supports regular expressions and print only lines that
> match at least one non-whitespace character. In case you weren't paying
> attention as usual, this is one extremely simple solution (again):
> 
> $ perl -i -ne "print if /\S/" temp.txt

Yup, that works too. Thanks!



More information about the Info-vax mailing list