Ooops. Judicious use of spaces would fix that, so I guess that \b is "blank space"
echo "catastrophe" | sed s/ cat / dog /g -----Original Message----- From: Jim Cheetham [mailto:[EMAIL PROTECTED] Sent: Wednesday, 19 January 2005 9:22 a.m. To: [email protected] Subject: Re: sed How do I replace whole word. C. Falconer wrote: > Why the \b ? So that echo "catastrophe" | sed s/cat/dog/g doesn't output "dogastrophe" :-) -jim
