I'm using this to list all the .pdf files:
find . -type f -iname '*.pdf'
I want to add to this, to only list those .pdf files which were created after 2008. Is there a way to do this with find or a better method? Thanks!
tmp=$(mktemp /tmp/time-XXXXXXXX)
touch -t 200801010000 "$tmp"
find . -type f -iname '*.pdf' -newer "$tmp"
rm "$tmp"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.