常用功能bash脚本

  1. find ./ -name "*.jpg" | xargs cp -t ./need_wash_img  #将文件夹及子文件夹中的所有.jpg图片移动到指定文件夹中
  2. dir *.jpg /s/b > list.txt   #将文件夹及子文件夹中的图片名字保存到txt中
原文地址:https://www.cnblogs.com/pogeba/p/13787661.html