Am Sonntag, 11. November 2007 01:41:44 schrieb Chris Arnold:
> file to .php
>
> Isn't there a program that will search all the files in a given directory
> for html and head and then replace that with something else? Then rename
> the files? I have seen the replace function in gedit but it does not accept
> the php code that needs to be inserted (i

$ sed -i 's/red/blue/g' file

to replace every entry called red with one that's called blue and write it in 
the file(-i). You can of course use such things as ./* for the hole 
directory....

man sed or man awk will provide you with further informations :)

Greetings
Michael

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to