Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Feb 2023 15:45:00 +0000
From:      Arthur Chance <freebsd@qeng-ho.org>
To:        Per olof Ljungmark <peo@nethead.se>
Cc:        FreeBSD-Questions <freebsd-questions@freebsd.org>
Subject:   Re: remove double quote character from file names
Message-ID:  <105187d9-2510-9209-8b35-c273aa20076b@qeng-ho.org>
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 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?

-- 
We build our computer systems the way we build our cities; over time,
without a plan, on top of ruins.
			— Ellen Ullman




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?105187d9-2510-9209-8b35-c273aa20076b>