Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
来自新手 linux 脚本编写者的另一个问题。我正在尝试使用此命令批量修改文件夹中的所有文件
find -name "*.jpg" -exec mogrify -resize 320 -quality 75 {} \;
该命令运行,但似乎没有任何反应。
提前致谢
尝试
find -name "*.jpg" -print
查看哪些文件匹配;这可能有助于诊断问题出在 mogrify 还是 find 上。
对不起,但这只是用户错误。测试时我不在正确的文件夹中。该命令确实有效。