problem with sed substitution

Olivier Regnier oregnier at oregnier.net
Tue Jun 19 16:58:13 UTC 2007


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 :)




More information about the freebsd-questions mailing list