no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | sed_examples [2012/12/31 19:51] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== sed examples ====== | ||
| + | * [[sed]] | ||
| + | |||
| + | |||
| + | == Remove one line == | ||
| + | |||
| + | < | ||
| + | sed -e ' | ||
| + | </ | ||
| + | |||
| + | == Remove a range of lines == | ||
| + | |||
| + | < | ||
| + | sed -e ' | ||
| + | </ | ||
| + | |||
| + | == Remove all trailing numbers and spaces behind it == | ||
| + | |||
| + | < | ||
| + | sed -e ' | ||
| + | </ | ||
| + | |||
| + | == Replace tabs with commas == | ||
| + | |||
| + | < | ||
| + | sed -e ' | ||
| + | </ | ||