小编lap*_*pin的帖子

如何在 macOS 上重命名带有重音符号的文件名?

我正在尝试重命名包含字符“à”的文件。

我执行以下操作:

rename -v 's/à/a/g' *
Run Code Online (Sandbox Code Playgroud)

但它显示所有文件都没有改变。详细模式显示相同的内容。

我试图逃脱 \但没有运气。

我怎样才能让正则表达式匹配这种类型的字符?

编辑

的输出perl -V

Summary of my perl5 (revision 5 version 18 subversion 2) configuration:

  Platform:
    osname=darwin, osvers=16.0, archname=darwin-thread-multi-2level
    uname='darwin osx320.apple.com 16.0 darwin kernel version 15.0.0: wed jun 22 17:57:08 pdt 2016; root:xnu-3247.1.106.2.9~1development_x86_64 x86_64 '
    config_args='-ds -e -Dprefix=/usr -Dccflags=-g  -pipe  -Dldflags= -Dman3ext=3pm -Duseithreads -Duseshrplib -Dinc_version_list=none -Dcc=cc'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-arch x86_64 -arch i386 -g …
Run Code Online (Sandbox Code Playgroud)

osx regular-expression rename unicode locate

5
推荐指数
1
解决办法
1605
查看次数

标签 统计

locate ×1

osx ×1

regular-expression ×1

rename ×1

unicode ×1