Sed

From Teknologisk videncenter
Revision as of 05:57, 3 May 2012 by Heth (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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#