On Tue, 19 Jun 2007, Olivier Regnier wrote:
Hi everyone,
I try to use sed with /etc/gettytab file. I would like to replace this text :
\r\n%s\%m ($h) (%t)\r\n\r by Hello world.
I tested with this command :
% sed -i.old -e 's/\r\n%s\%m ($h) (%t)\r\n\r/Hello world/'
but that doesn't work at all.
Can you help me please ?
Thank you :)
In place replacement isn't a wise idea. Output it to a temp file, then move it
to the old filename if you wish.
-Garrett
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"