[Ubuntu-PH] help on script

cj pangilinan cjpangilinan at gmail.com
Sat Jul 16 13:21:52 UTC 2011


find . -name project.xml -type f |xargs perl -pi -e 's/string1/string2/g'

but I can't seem to work -name project-*.xml. How do I replace project.xml
with multiple files like project-*.xml

--
Carlos Jhunie L. Pangilinan, Jr.

:::::::::::::::::::::::::::::::::::::::::::::


On Sat, Jul 16, 2011 at 10:34, Ian Dexter R. Marquez <iandexter at gmail.com>wrote:

> On Sat, Jul 16, 2011 at 02:28, cj pangilinan <cjpangilinan at gmail.com>
> wrote:
> > 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.
> >
>
> What have you done so far?
>
> --
> Ian Dexter R. Marquez
> http://iandexter.com
>
> --
> ubuntu-ph mailing list
> ubuntu-ph at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-ph
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-ph/attachments/20110716/463ec372/attachment.html>


More information about the ubuntu-ph mailing list