Linux
  • Linux
  • Bash
  • Debian
  • Ubuntu
  • Shell
  • CentOS
  • SSH
☰

刪除 Mavericks 中沒有標籤的資料夾中的所有內容

tag-icon 2024-7-14 • tag-icon osx-mavericks
刪除 Mavericks 中沒有標籤的資料夾中的所有內容

如何刪除沒有標籤的資料夾中的所有內容?手動篩選它是相當不合理的。

答案1

mdfind 'kMDItemUserTags!=*' -onlyin . -0|xargs -0 rm

或使用標籤:

find . -type f|while read f;do [[ $(tag -m \* "$f") ]]||rm "$f";done
THE END
刪除JDK檔案後如何卸載? 刪除JDK檔案後如何卸載?
Networx 顯示下載頻寬使用過多 Networx 顯示下載頻寬使用過多

相關內容

熱門問答

熱門問答

  • java
  • windows
  • bandwidth
  • monitoring
  • report

© 2024 rvso.com 版權所有. 網站地圖