linux-l: Re: Suchen und Ersetzen ?

Ralf Cirksena r-c at gmx.net
So Mär 11 17:27:22 CET 2001


Hi Lutz,

On 2001-03-11 10:13 GMT, Lutz Lange wrote:

> $ cat /etc/passwd | sed -e '3,$s/\/bin\bash/reject/'

Useless use of cat (oder so).

sed -s '3,$s/bin\/bash/reject/' < /etc/passwd > /tmp/passwd.tmp && \
mv /tmp/passwd.tmp /etc/passwd

-- 
Ralf Cirksena <r-c at gmx.net> powered by Linux
Registered Linux User #54003 <http://counter.li.org/>
PGP key ID: 47D700AF, PGP-key on request: mail to me, subject: get pgp key 




Mehr Informationen über die Mailingliste linux-l