V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
hellododoo
V2EX  ›  Linux

Linux 下有无像 powerrename 类似的工具呢?

  •  
  •   hellododoo · 2022-06-15 08:38:34 +08:00 · 2447 次点击
    这是一个创建于 652 天前的主题,其中的信息可能已经有所发展或是发生改变。

    linux 下文件管理器自带的批量重命名工具功能太单一了,不能使用正则表达式。 windows 下的 powerrename 功能就很强大,并且带有历史命令功能。非常好用。

    13 条回复    2022-08-19 10:40:19 +08:00
    des
        1
    des  
       2022-06-15 08:42:17 +08:00 via iPhone
    我怀疑你在钓鱼,这不是支持吗?
    https://askubuntu.com/questions/1010410/rename-file-using-regex
    youstu
        2
    youstu  
       2022-06-15 08:43:10 +08:00
    命令工具满足你所有的需求
    conanforever22
        3
    conanforever22  
       2022-06-15 09:14:09 +08:00
    如果熟悉 vim 的话可以试试 vidir
    noqwerty
        4
    noqwerty  
       2022-06-15 09:20:46 +08:00
    直接用 rename 就可以啊
    noqwerty
        5
    noqwerty  
       2022-06-15 09:20:51 +08:00
    lululau
        6
    lululau  
       2022-06-15 09:53:56 +08:00
    zmv
    7RTDKSAK
        7
    7RTDKSAK  
       2022-06-15 11:50:09 +08:00
    有 perl 写得 rename ,支持使用正则表达式来重命名,各大发行版的源里就有
    hellododoo
        8
    hellododoo  
    OP
       2022-06-15 11:54:55 +08:00
    学习了,感谢
    moonjourney
        9
    moonjourney  
       2022-06-15 14:24:40 +08:00
    horseInBlack
        10
    horseInBlack  
       2022-06-15 14:33:13 +08:00
    fuis
        11
    fuis  
       2022-06-15 15:16:28 +08:00
    $ tldr rename

    rename

    Rename a file or group of files with a regular expression.
    More information: <https://www.manpagez.com/man/2/rename/>.

    - Replace `from` with `to` in the filenames of the specified files:
    rename 's/from/to/' *.txt
    tedding
        12
    tedding  
       2022-06-16 01:21:58 +08:00 via iPhone
    gui 工具 kRename ,是的 kde 系的😂
    linuxgo
        13
    linuxgo  
       2022-08-19 10:40:19 +08:00
    试试 doublecommander
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1048 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 22:35 · PVG 06:35 · LAX 15:35 · JFK 18:35
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.