Re: remove double quote character from file names
Date: Sat, 11 Feb 2023 16:13:19 UTC
On 2/11/23 16:45, Arthur Chance wrote: > On 11/02/2023 14:58, 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. > > There's no rename command in the base system. Perhaps you meant to > install the sysutils/rename pkg but forgot? > No, I thought rename was part of the base system stupid me. So, without installing more ports I suppose sed(1) could do the job?