Re: remove double quote character from file names

From: Scott Ballantyne <boyvalue_at_gmail.com>
Date: Sat, 11 Feb 2023 18:00:09 UTC
On Sat, Feb 11, 2023 at 11:43 AM Per olof Ljungmark <peo@nethead.se> wrote:

> On 2/11/23 16:43, Scott Ballantyne wrote:
> >
> > Remove the first echo command to actually do any changes. Untested.
> > for f in $(find . -type f -name '*"*'); do echo mv $f $(echo $f | tr -d
> > '"'); done
>
> Produced  "No such file or directory" errors.


You must have spaces in the filenames. You can deal with that using IFS.


>

>
>