[Ubuntu-PH] help on script
hard wyrd
hardwyrd at gmail.com
Sat Jul 16 02:44:42 UTC 2011
find . -type f -print0 | xargs -0 sed -i 's/string1/string2/g'
On Sat, Jul 16, 2011 at 2:28 AM, cj pangilinan <cjpangilinan at gmail.com>wrote:
> Hi List,
>
> I need help on writing a script or a one-liner command in Unix.
>
> Create a script to find all project.xml file under the current directory
> and open it and replace "file:C:/folder/file.txt" with
> "file:/work/dir/file.txt" and then close it.
>
> Thanks in advance.
> --
> Carlos Jhunie L. Pangilinan, Jr.
>
> :::::::::::::::::::::::::::::::::::::::::::::
>
> --
> ubuntu-ph mailing list
> ubuntu-ph at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-ph
>
>
--
-------------------------------------------------------------
"Penguin, penguin, and more penguin !"
http://www.webhostadmins.com
http://www.madforubuntu.com
http://baudizm.blogsome.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-ph/attachments/20110716/5ba048ad/attachment.html>
More information about the ubuntu-ph
mailing list