[Novalug] perl help | filename spaces

Ken Kauffman kkauffman at headfog.com
Wed Mar 17 20:53:38 EDT 2010


So I want to run this one liner, but it doesn't handle filename and
directory spaces.  Does someone with more experience in perl/scripting have
a proposed solution they would be willing to share with me?

perl -e "s/news.html/news\//g;" -pi.save $(find . -type f)

TIA

Ken
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://calypso.tux.org/pipermail/novalug/attachments/20100317/16a3c0c5/attachment.html 


More information about the Novalug mailing list