DylanZ
V2EX  ›  macOS

Hazel 技巧请教:匹配文件名称,并移入同名文件夹

  •  
  •   DylanZ · May 7, 2022 · 1980 views
    This topic created in 1655 days ago, the information mentioned may be changed or developed.
    文件内容:王大锤 1 ,王大锤 2 ,李寻欢,谢小萌 1 ,谢小萌 2 ,谢小萌 3
    需要分别新建 3 个文件夹:王大锤,李寻欢,谢小萌,并移入各自文件

    请问使用 Hazel/Automato/KM 可否实现呢?
    3 replies  •  2022-05-07 23:46:36 +08:00
    robbielj
    robbielj
    May 7, 2022
    1
    hazel 可以的吧,文件内容写个 shell 脚本用 cat 和 sed/grep 去判断有没有匹配,然后再移动。
    chonger
    chonger
    May 7, 2022
    2
    你这个文件内容是什么意思?名字是王大锤 1 ,王大锤 2 的文件?
    DylanZ
    DylanZ
    OP
    May 7, 2022
    3
    @chonger 是的,应该是文件名:王大锤 1 ,王大锤 2 ,李寻欢,谢小萌 1 ,谢小萌 2 ,谢小萌 3
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1217 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 17:35 · PVG 01:35 · LAX 09:35 · JFK 12:35
    ♥ Do have faith in what you're doing.