Re: remove double quote character from file names
- In reply to: Per olof Ljungmark : "remove double quote character from file names"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 13 Feb 2023 13:57:06 UTC
On 2/11/2023 9:58 AM, Per olof Ljungmark wrote: > Hi all, > > A little help on the way, I need to find and remove the double quote > (") character from all files in a directory structure containing > hundreds of thousands of files. > > I am sure plenty of you have done this before... I've gotten as far as > > find . -type f -name '*"*' -exec rename 's|"|in|g' {} \; > find: rename: No such file or directory > > The find part works but not renaming so I'm missing something there. > I know lots of a good suggestions already on this thread, but something to keep in mind for future considerations is the port sysutils/detox. Its very handy for situations like this and ones much more convoluted. ---Mike