sed "/string1/string2/g" file

will replace string1 with string2 in file. You can also use wildcards to specify
the file:

sed "/string1/string2/g" *

will do the replacement in all files of the working directory


r00t the LiNuXeRRR wrote:

> Hy all,
>
> How can i replace a string in a file (without editing :) )?
>
> Thanx, Cosmin
>
> -====---====---====---====---====---====---====---====---====---====---====-
>  to unsubscribe email "unsubscribe linux-admin" to [EMAIL PROTECTED]
>  See the linux-admin FAQ: http://www.kalug.lug.net/linux-admin-FAQ/

--
    Juan Sales
    Rio de Janeiro
    [EMAIL PROTECTED]


-====---====---====---====---====---====---====---====---====---====---====-
 to unsubscribe email "unsubscribe linux-admin" to [EMAIL PROTECTED]
 See the linux-admin FAQ: http://www.kalug.lug.net/linux-admin-FAQ/

Reply via email to