User Tools

Site Tools


linux:sed:remove_all_whitespace_including_tabs_from_string

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

linux:sed:remove_all_whitespace_including_tabs_from_string [2019/12/10 10:41] – created peterlinux: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]*$//' > output.txt 
-</code> 
  
linux/sed/remove_all_whitespace_including_tabs_from_string.1575974494.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki