Linux 查找特定年份后创建的 : How to find . PDF 文件?

标签 linux date find

我正在使用它来列出所有 .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/

相关文章:

linux - terminfo 似乎在 csh 中不起作用

linux - 如何让PCI设备发起DMA操作?

linux - 以 root 身份更改/etc/ld.conf.so.d 的替代方案?

Lua 表查找

c++ - Linux 应用程序中的架构建议

excel - dd/mm/yyyy 格式的日期在 Excel Vba 中返回 1004 错误

swift - 从 dateFormat 获取错误的日期

jsp - 在 Spring Web 应用程序中显示日期字段的策略

linux - 查找 world/other 没有 r/x 权限的所有目录

regex - 使用 find 或 grep 查找来自不同编码系统(Windows 到 Linux)的带有重音字符的文件名