[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Changing file names with "--" to "-" recursively
From: |
Jean Louis |
Subject: |
Re: Changing file names with "--" to "-" recursively |
Date: |
Sun, 21 Feb 2021 15:42:02 +0300 |
User-agent: |
Mutt/2.0 (3d08634) (2020-11-07) |
* Emanuel Berg via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org> [2021-02-21 10:47]:
> Jean Louis wrote:
>
> > The command:
> >
> > $ rename 's/--/-/g' *
> >
> > does not work on my side as it works on yours, maybe it is
> > different software.
>
> Works here!
>
> $ rename --version
>
> /bin/rename using File::Rename version 1.13,
> File::Rename::Options version 1.10
>
> By Larry Wall, I read in rename(1p), from the "User
> Contributed Perl Documentation". You gotta love it :)
Sure, I remember that one.
My command is from from util-linux 2.29.2
But it does not matter, the iteration that was proposed replaces both
of them.