Originally Posted By: wfaulk
The proper (modern) solution to the find/xargs/spaces problem is "find -print0 | xargs -0".


Which is what I use elsewhere and I did try it here. It didn't work until I finally played with the params for perl (must specify as -p -i -e).

The drawback however is that every file's modified date is changed, not only the files that need to be edited.

It does get around the no files issue - because it tries to pass "." as a file which gets perl to simply output an error.

Originally Posted By: wfaulk
That said, if you're already using perl, why not just have perl find the files?


Because I was trying to avoid creating a brand new script and just wanted to insert the command I'm creating into an existing bash script. If I have to, I suppose I could learn enough Perl to do it all and then execute the perl script from the bash script. Or the installer might be able to execute it on its own after the bash script (something I'd have to look into).


Edited by hybrid8 (14/09/2011 18:42)
_________________________
Bruno
Twisted Melon : Fine Mac OS Software