[Solved] Bash remove all lines of input except last n 9to5Answer
Bash Remove Blank Lines. Sed '/^\s*$/d' file to save the changes back to the file. Which removes all lines including spaces or tabs.
Web use the following command: Sed '/^\s*$/d' file to save the changes back to the file. Which removes all lines including spaces or tabs. Web use \s* for blank lines containing only whitespace:
Sed '/^\s*$/d' file to save the changes back to the file. 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 \s* for blank lines containing only whitespace: