Sed: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
[[Category:Unix]] | |||
=====Sed Oneliners===== | =====Sed Oneliners===== | ||
Revision as of 20:53, 23 September 2010
Sed Oneliners
Change first occurence ape in each line to rock.
sed 's/ape/rock/'
Delete all lines starting from the line containing ape to the line containing rock.
sed '/ape/,/rock/d'