-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 09-Aug-2002/09:53 -0700, David Kramer <[EMAIL PROTECTED]> wrote:
>I second that one!!!  It will help you in the long run with learning Regular
>Expressions!
>
>but....
>
>sed 's/hostname=Venus/hostname=Mar/' Foo

That will work on small files, but I don't recommend it. Make a habit of
redirecting the output to a temp file, or 'less'. Otherwise the shell may
open the file for output before it is completely read by awk. That will
effectively truncate the input.

Tony
- -- 
Anthony E. Greene <mailto:[EMAIL PROTECTED]>
OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26  C484 A42A 60DD 6C94 239D
AOL/Yahoo Chat: TonyG05      HomePage: <http://www.pobox.com/~agreene/>
Linux: the choice of a GNU Generation. <http://www.linux.org/>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Anthony E. Greene 0x6C94239D <[EMAIL PROTECTED]>

iD8DBQE9VD7npCpg3WyUI50RAsvKAJ9UEkZu5OYMTStZqv1PXbjM3XJ0LwCghxfl
kBWgDwQvcP1TycpPMUXgZzY=
=9TKX
-----END PGP SIGNATURE-----



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to