Re: Fixing spelling errors in English templates
On Tue, Mar 01, 2005 at 02:42:44PM +0100, Geert Stappers wrote:
> On Wed, Jan 26, 2005 at 07:52:43AM +0100, Christian Perrier wrote:
> > The needed operations are:
> > 0 ask me to stop l10n-sync on gluck
> > 1 go to <foo>/debian/po
> > 2 mkdir NEW
> > 3 for i in *po ; do cat $i | sed 's/immediate/imediate/g' >NEW/$i ; done
> > 4 mv NEW/*po .
> > 5 rmdir NEW
> > 6 cd ..
> sed in sid is version 4.x, it can make inplace changes.
> step 2, 3, 4 and 5 can be replaced by
> for i in *po ; do cat $i | sed -i 's/immediate/imediate/g' ; done
I bet it can't make in-place changes on standard input. ;-) How about:
for i in *po ; do sed -i 's/immediate/imediate/g' "$i" ; done
Colin Watson [email@example.com]