[Novalug] perl help | filename spaces

Julian Russell lists@timber-wolf.org
Fri Mar 19 13:30:12 EDT 2010


nevermind, I wanted to say exactly what Peter said...

On Fri, Mar 19, 2010 at 1:28 PM, Julian Russell <lists@timber-wolf.org>wrote:

> can you do something like (I'm asking not saying):
>
> find [WHATEVER] -name '* *' -print0 | -pi.save
>
> On Wed, Mar 17, 2010 at 8:53 PM, Ken Kauffman <kkauffman@headfog.com>wrote:
>
>>  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
>>
>> _______________________________________________
>> Novalug mailing list
>> Novalug@calypso.tux.org
>> http://calypso.tux.org/mailman/listinfo/novalug
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.firemountain.net/pipermail/novalug/attachments/20100319/bc41b751/attachment.htm>


More information about the Novalug mailing list