Sed

From Teknologisk videncenter
Revision as of 13:43, 31 August 2011 by Heth (talk | contribs)
Jump to: navigation, search

Serial editor

Hent bestemte linier i en fil

Eksemplet herunder skriver linie 2 til 4 ud på STDOUT

root@mars2:/tmp#<input>sed -n 2,4p linier</input>
indhold af Linie 2
indhold af Linie 3
indhold af Linie 4
root@mars2:/tmp#