Ha jól hiszem, Pirity Tamas Gabor írta az alábbiakat:
> $ cat 1.txt | sed '1,3cnopqrst'
> nopqrst
> jklm
> $

PS: Persze a sed '1,3cxyz\njsh' vagy
sed '1,3cxyz
kyejrk'
trükkel tudsz (egy vagy) több sor helyére több sort
is besomni.

--e
PTG
You're ugly and your mother dresses you funny.
Debian 3.0 -- Linux 2.6.14.3
_________________________________________________
linux lista      -      [email protected]
http://mlf2.linux.rulez.org/mailman/listinfo/linux

válasz