Ubuntu 20.04 我有以下存储文件的示例:
单 -
Biology -
01122023 Class 01 - subj dfsg.txt
02122023 Class 02 - subj eweg.txt
03122023 Class 03 - subj ewq.txt
Math -
01122023 Class 01 - subj asdfg.txt
05122023 Class 02 - subj adsdf.txt
05122023 Class 03 - subj asfv.txt
Physics -
01122023 Class 01 - subj asdsfg.txt
02122023 Class 02 - subj asdff.txt
04122023 Class 03 - subj aewv.txt
我怎样才能在终端中批量重命名每个文件夹内的所有文件,使它们变成:
单 -
Biology -
[01122023] Class 01 - subj dfsg.txt
[02122023] Class 02 - subj eweg.txt
[03122023] Class 03 - subj ewq.txt
Math -
[01122023] Class 01 - subj asdfg.txt
[05122023] Class 02 - subj adsdf.txt
[05122023] Class 03 - subj asfv.txt
Physics -
[01122023] Class 01 - subj asdsfg.txt
[02122023] Class 02 - subj asdff.txt
[04122023] Class 03 - subj aewv.txt