Difference between revisions of "Sed"
From Teknologisk videncenter
m |
m |
||
Line 11: | Line 11: | ||
</source> | </source> | ||
{{Source cli}} | {{Source cli}} | ||
− | [[Category:bash]][[Category:UNIX]][[Category:Linux]] | + | [[Category:bash]][[Category:UNIX]][[Category:Linux]][[Category:Linux Command]] |
Latest revision as of 05:57, 3 May 2012
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#