linux:sed
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:sed [2019/12/10 10:44] – peter | linux:sed [2019/12/10 20:50] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Linux - SED ====== | ||
- | |||
- | [[Linux: | ||
- | |||
- | [[Linux: | ||
- | |||
- | Remove all leading and trailing whitespace from end of each line: | ||
- | |||
- | <code bash> | ||
- | cat input.txt | sed 's/^[ \t]*//;s/[ \t]*$//' | ||
- | </ | ||
- | |||
- | |||
- | [[Linux: | ||
- | |||
- | [[Linux: | ||
- | |||
- | [[Linux: |
linux/sed.1575974673.txt.gz · Last modified: 2020/07/15 09:30 (external edit)