[Gllug] C and Unix pioneer Dennis Ritchie reported dead

James Hawtin oolon at ankh.org
Tue Nov 1 15:03:28 UTC 2011

Nix wrote:
> Yeah. It's not ideal: shell loops are best avoided, so
> sed -i -e 's/fish/chips/g' *.html
That fails the google test as well... you mean...

sed -i -e 's/fish/chips/g' -- *.html

(also did my hacked up response as I missed the the double quotes arroud 
the $i )

for i in *.html ; do sed -i -e 's/fish/chips/g' -- "$i" ; done


Gllug mailing list  -  Gllug at gllug.org.uk

More information about the GLLUG mailing list