User Tools

Site Tools


linux:sed:remove_all_whitespace_including_tabs_from_end_of_string

This is an old revision of the document!


Linux - SED - Remove all whitespace (including tabs) from end of string

To delete trailing whitespace from end of each line, enter:

cat input.txt | sed 's/[ \t]*$//' > output.txt
linux/sed/remove_all_whitespace_including_tabs_from_end_of_string.1575974422.txt.gz ยท Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki