Difference between revisions of "Sed"
From Teknologisk videncenter
m (Created page with "Serial editor <source lang=cli> 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# </source> {{Source cli...") |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
Serial editor | Serial editor | ||
+ | |||
+ | ==Hent bestemte linier i en fil== | ||
+ | Eksemplet herunder skriver linie 2 til 4 ud på STDOUT | ||
<source lang=cli> | <source lang=cli> | ||
root@mars2:/tmp#<input>sed -n 2,4p linier</input> | root@mars2:/tmp#<input>sed -n 2,4p linier</input> | ||
Line 8: | 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#