On Saturday 15 Dec 2012 13:52:41 Ralph Corderoy wrote:
> Assuming apostrophe as in ASCII 39 and not a sexy one and given
> /usr/bin/prename from package perl, this will print what it would rename
> but not carry it out. Remove the `-n' if you're happy.
>
> find -type f -print0 | xargs -r0 prename -n "s/'//g"
I couldn't get that to work as advertised. If I did it as written above, it
did what you said and printed out what it would do. When I removed the '-n'
it refused to work at all saying that the file or folder didn't exist.
This may be a red herring, because I also had path length issues on the FAT32
partition, so that may have been the cause. However, if so, why did it
apparently work with the '-n'?
In the end, I used Sean's version, which worked fine once I'd got the folder
names short enough.
Thanks to both for your help.
--
Terry Coles
64 bit computing with Kubuntu Linux
--
Next meeting: Bournemouth, Tuesday, 2013-01-08 20:00
Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/
New thread on mailing list: mailto:[email protected]
How to Report Bugs Effectively: http://goo.gl/4Xue