Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Feb 2023 13:31:49 -0500
From:      Kurt Hackenberg <kh@panix.com>
To:        questions@freebsd.org
Subject:   Re: remove double quote character from file names
Message-ID:  <Y%2BffFccEVhLCFBMP@rain.cave>
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 Sat, Feb 11, 2023 at 03:58:50PM +0100, Per olof Ljungmark wrote:

>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.

That's nasty. Be careful, keep backups.

I might use a full-on programming language -- maybe Python or Ruby -- 
to avoid the difficulties of shell parsing and quoting. However, if you 
want to do it through a shell, this might be helpful:

<https://dwheeler.com/essays/filenames-in-shell.html>;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Y%2BffFccEVhLCFBMP>