我正在使用它来列出所有 .pdf 文件:
find . -type f -iname '*.pdf'
我想补充一点,只列出 2008 年之后创建的那些 .pdf 文件。有没有办法用 find 或更好的方法来做到这一点?谢谢!
最佳答案
tmp=$(mktemp /tmp/time-XXXXXXXX)
touch -t 200801010000 "$tmp"
find . -type f -iname '*.pdf' -newer "$tmp"
rm "$tmp"
关于Linux 查找特定年份后创建的 : How to find . PDF 文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16757326/