• Re: What Is Your Fave File Detox?

    From vallor@21:1/5 to ldo@nz.invalid on Thu May 1 09:13:52 2025
    On Thu, 1 May 2025 08:24:19 -0000 (UTC), Lawrence D'Oliveiro
    <ldo@nz.invalid> wrote in <vuvb3j$28v7l$2@dont-email.me>:

    On Wed, 30 Apr 2025 09:48:14 +0800, Woozy Song wrote:

    Generally, I want to only remove spaces, but keep foreign letters (from
    German/Icelandic whatever).

    I take full advantage of the fact that *nix systems allow filenames that
    are not legal on Dimdows.

    What annoys me is that rename command works differently in Debian to
    other distros.

    What rename command?

    There's one that comes with perl.

    I prefer "mmv" for mass renaming:

    MMV(1) User Commands MMV(1)

    NAME
    mmv - move/copy/link multiple files by wildcard patterns

    SYNOPSIS
    mmv [-m|-x|-r|-c|-o|-a|-l|-s] [-h] [-d|-p] [-g|-t]
    [-v|-n] FROM TO

    DESCRIPTION
    move/copy/link multiple files by wildcard patterns

    The FROM pattern is a shell glob pattern, in which `*'
    stands for any number of characters and `?' stands for a
    single character.

    Use #[l|u]N in the TO pattern to get the string matched
    by the Nth FROM pattern wildcard [lowercased|upper‐
    cased].

    Patterns should be quoted on the command line.
    [...]

    --
    -v System76 Thelio Mega v1.1 x86_64 NVIDIA RTX 3090 Ti
    OS: Linux 6.14.4 Release: Mint 22.1 Mem: 258G
    "A cat is an animal who never cries over spilled milk."

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lawrence D'Oliveiro@21:1/5 to Woozy Song on Thu May 1 08:24:19 2025
    On Wed, 30 Apr 2025 09:48:14 +0800, Woozy Song wrote:

    Generally, I want to only remove spaces, but keep foreign letters (from German/Icelandic whatever).

    I take full advantage of the fact that *nix systems allow filenames that
    are not legal on Dimdows.

    What annoys me is that rename command works differently in Debian to
    other distros.

    What rename command?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From vallor@21:1/5 to All on Thu May 1 10:49:27 2025
    On Thu, 01 May 2025 10:23:40 +0000, Farley Flud <fsquared@fsquared.linux>
    wrote in <183b602b79d4754c$100112$5317$802601b3@news.usenetexpress.com>:

    On Thu, 01 May 2025 09:13:52 +0000, vallor wrote:


    What rename command?

    There's one that comes with perl.

    I prefer "mmv" for mass renaming:


    Those shell commands may not work.

    Example. Some videos downloaded from YouTube will have outlandish
    filenames that contain exclamation points (!) inside double quote marks: '..."...!..."...'
    This is not a joke.

    When bash sees that it will choke.

    Not if you set +H

    _[/home/vallor]_(vallor@lm)🐧_
    $ !!
    !!: command not found

    It's best to use the renaming utilities that I cited.

    --
    -v System76 Thelio Mega v1.1 x86_64 NVIDIA RTX 3090 Ti
    OS: Linux 6.14.4 Release: Mint 22.1 Mem: 258G
    "Ethernet n.: something used to catch the etherbunny."

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Farley Flud@21:1/5 to vallor on Thu May 1 10:23:40 2025
    On Thu, 01 May 2025 09:13:52 +0000, vallor wrote:


    What rename command?

    There's one that comes with perl.

    I prefer "mmv" for mass renaming:


    Those shell commands may not work.

    Example. Some videos downloaded from YouTube will have outlandish filenames that contain exclamation points (!) inside double quote marks: '..."...!..."...'
    This is not a joke.

    When bash sees that it will choke.

    It's best to use the renaming utilities that I cited.



    --
    Hail Linux! Hail FOSS! Hail Stallman!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)