我需要为 600 多个不同名称的文件夹执行此操作,并且其中的 .nfo 文件不一定与文件夹具有相同的名称,他只是其中的几个。
m0j0@unity ~/files/TV.TL/TEST $ ls -lr
total 28
drwxrwx--- 2 m0j0 m0j0 162 Nov 30 19:57 G.S01E07.720p.AMZN.WEB-DL
drwxrwx--- 2 m0j0 m0j0 164 Nov 30 19:57 G.S01E07.1080p.AMZN.WEB-DL
drwxrwx--- 2 m0j0 m0j0 148 Nov 30 19:57 G.S01E06.S.1080p.AMZN.WEB-DL
drwxrwx--- 3 m0j0 m0j0 4096 Nov 30 19:57 G.S01E06.HDTV
drwxrwx--- 3 m0j0 m0j0 4096 Nov 30 19:57 G.S01E06.720p.WEB
drwxrwx--- 3 m0j0 m0j0 4096 Nov 30 19:57 G.S01E06.720p.HDTV
drwxrwx--- 3 m0j0 m0j0 4096 Nov 30 19:57 G.S01E05.HDTV
drwxrwx--- 3 m0j0 m0j0 4096 Nov 30 19:57 G.S01E05.720p.WEB
drwxrwx--- 3 m0j0 m0j0 4096 Nov 30 19:57 G.S01E05.720p.HDTV
drwxrwx--- 3 m0j0 m0j0 4096 Nov 30 19:57 G.S01E05.1080p.WEB
m0j0@unity ~/files/TV.TL/TEST $ find . -iregex '.*\.\(nfo\)' -printf '%Tc %f\n'
Mon 13 Nov 2017 10:02:05 AM +08 g.s01e06.720p.hdtv.nfo
Wed 22 Nov 2017 08:17:40 AM +08 G.S01E07.1080p.AMZN.WEB-DL.nfo
Wed 22 Nov 2017 08:17:12 AM +08 G.S01E07.720p.AMZN.WEB-DL.nfo
Tue 14 Nov 2017 02:47:07 AM +08 G.S01E06.1080p.AMZN.WEB-DL.nfo
Mon 06 Nov 2017 09:58:54 AM +08 g.s01e05.1080p.web.nfo
Mon 06 Nov 2017 10:01:02 AM +08 g.s01e05.hdtv.nfo
Mon 13 Nov 2017 10:02:23 AM +08 g.s01e06.hdtv.nfo
Mon 06 Nov 2017 09:57:15 AM +08 g.s01e05.720p.web.nfo
Mon 06 Nov 2017 10:01:27 AM +08 g.s01e05.720p.hdtv.nfo
Mon 13 Nov 2017 09:57:36 AM +08 g.s01e06.720p.web.nfo