Help for this page

Select Code to Download


  1. or download this
    perl -i.bak -ne 'print if /\S/' file.txt
    
  2. or download this
    perl -i.bak -ne 's/^\s+$//;print' file.txt