How Do I Remove a Tab Space in Unix?
Contents How Do I Remove Spaces from a Unix File? Simple Solution Is by Using Grep (Gnu or Bsd) Command as Below. Remove Blank Lines (Not Including Lines with...
Contents
How do I remove spaces from a Unix file?
Simple solution is by using grep (GNU or BSD) command as below.
- Remove blank lines (not including lines with spaces). grep . file.txt.
- Remove completely blank lines (including lines with spaces). grep “S” file.txt.
Must Read
How do you get rid of spaces on your tab?
Edit – Line – Unindent (or it’s keyboard shortcut). And shift + tab works as well.