Date: Mon, 13 Feb 2023 08:57:06 -0500 From: mike tancsa <mike@sentex.net> To: Per olof Ljungmark <peo@nethead.se>, freebsd-questions@freebsd.org Subject: Re: remove double quote character from file names Message-ID: <2e9d1a3d-f826-6dd0-9992-25c7d990c666@sentex.net> In-Reply-To: <d83c93ad-0eac-d41a-c7db-79a1e1bc62d8@nethead.se> References: <d83c93ad-0eac-d41a-c7db-79a1e1bc62d8@nethead.se>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2e9d1a3d-f826-6dd0-9992-25c7d990c666>