User Tools

Site Tools


sed:remove_whitespace_including_tabs_from_a_file

This is an old revision of the document!


SED - Remove whitespace (including tabs) from a file

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

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki