Date: Sun, 12 Feb 2023 14:45:49 +0100 From: Polytropon <freebsd@edvax.de> To: Kurt Hackenberg <kh@panix.com> Cc: questions@FreeBSD.org Subject: Re: remove double quote character from file names Message-ID: <20230212144549.82a9c24e.freebsd@edvax.de> In-Reply-To: <Y%2BffFccEVhLCFBMP@rain.cave> References: <d83c93ad-0eac-d41a-c7db-79a1e1bc62d8@nethead.se> <Y%2BffFccEVhLCFBMP@rain.cave>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 11 Feb 2023 13:31:49 -0500, Kurt Hackenberg wrote: > 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> And just in case other special characters appear: Fixing Unix/Linux/POSIX Filenames: Control Characters (such as Newline), Leading Dashes, and Other Problems by David A. Wheeler 2018-06-24 (originally 2009-03-24) https://dwheeler.com/essays/fixing-unix-linux-filenames.html -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20230212144549.82a9c24e.freebsd>