0%

move sub folder files outside to parent

下载的美剧是1目录1集,想考出来

a1/a1.mp4
a2/a2.mp4

->

a1.mp4
a2.mp4

1
find . -type f -exec mv {} ./ \;

报错!重名!

a1.mp4/a1.mp4
a2.mp4/a2.mp4

1
find . -type f -exec mv {} ../ \;

那就往上一层(然后删除空目录,再考回去)