linux:sed:remove_all_whitespace_including_tabs_from_string
Differences
This shows you the differences between two versions of the page.
linux:sed:remove_all_whitespace_including_tabs_from_string [2019/12/10 10:41] – created peter | linux:sed:remove_all_whitespace_including_tabs_from_string [2019/12/10 12:27] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Linux - SED - Remove all whitespace (including tabs) from string ====== | ||
- | |||
- | <code bash> | ||
- | cat input.txt | sed 's/^[ \t]*//;s/[ \t]*$//' | ||
- | </ | ||
linux/sed/remove_all_whitespace_including_tabs_from_string.1575974494.txt.gz · Last modified: 2020/07/15 09:30 (external edit)