Bash Remove Blank Lines

Permanently remove white lines

Bash Remove Blank Lines. Web use the following command: Web use \s* for blank lines containing only whitespace:

Permanently remove white lines
Permanently remove white lines

Web use \s* for blank lines containing only whitespace: Which removes all lines including spaces or tabs. Sed '/^\s*$/d' file to save the changes back to the file. Web use the following command:

Web use the following command: Web use the following command: Sed '/^\s*$/d' file to save the changes back to the file. Web use \s* for blank lines containing only whitespace: Which removes all lines including spaces or tabs.