Sed

From RoggeWiki
Revision as of 23:30, 25 September 2010 by Tom (talk | contribs)
Jump to navigation Jump to search

This article is under construction. Please do not rely on any information it contains.


sed - A stream editor for filtering and transforming text.

pattern procedure

Synopsis

sed [-n] [-e] [-f filename] [input-file]

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'