[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Edlug Archive Mar 2004 ]

Re: [edlug] Global Search and Replace

Michael Maclean wrote:

I had to do something like this earlier today. If I remember right, I did something like:
find . -name '*.html' | xargs sed 's/<\/body>/<script>'

On the same lines you could do:

find . -name '*.html' -exec sed 's.....' \;

I've not tried it though

You can find the EdLUG mailing list FAQ list at:

This archive is kept by wibble@morpheux.org.DONTSPAMME