Emacs Dired rename many files

前端 未结 2 1574
忘了有多久
忘了有多久 2021-02-01 03:53

How to rename from:

VAR1_1F_text.txt
VAR2_1F_text.txt
VAR3_2F_text.txt

to

1F_VAR1_text.txt
1F_VAR2_text.txt
2F_VAR3_text.txt
         


        
2条回答
  •  佛祖请我去吃肉
    2021-02-01 04:30

    You could also use Magnar Sveen's multiple-cursors from here, github link.

    Switch to writable dired, select the files you want to rename, M-x mc/edit-lines. This should create multiple cursor each with its own kill history.

提交回复
热议问题