Skip to primary content
Skip to secondary content

GotITSolutions.org

Get Information Technology Conjecture…

GotITSolutions.org

Main menu

  • Home
  • About

Category Archives: Perl

Perl code to remove blank lines from a text file

Posted on February 21, 2010 by rbocchinfuso
Reply

Remove blank lines from a text file with a single line of perl:

perl -ni.bak -e ’s/^\s*$//’ filename

 

Posted in Perl, Source | Leave a reply

Categories

Recent Posts

  • Securing Graylog behind a Caddy reverse proxy
  • Quatantorial Volume 5: Savoring the Introvert Advantage
  • Quarantorial Volume 4: “Thoughts on Knowledge 2020 and a rapidly evolving human and enterprise condition.”
  • Quarantorial Volume 3: “Act As If”
  • Quarantorial Volume 2: 21st-century knowledge workers, motivational theory and working from wherever.
Proudly powered by WordPress