tech:find_entre_deux_dates

GNU/Linux - Commande find - Trouver les fichiers crées ou modifiés entre deux dates

Find entre la date aaa et la date bbb

Voir nb_jour_entre_deux_date

man touch

-t DATE
utiliser [[CC]AA]MMJJhhmm[.ss] à la place de la date actuelle
touch -t 1412310000 ~/tmp/ficref
find /mnt/archives -maxdepth 1 -type f -newer ~/tmp/ficref -iname "*.csv" 

Trouvez tous les fichiers logs modifié entre le 2016-10-18 07:00 (1610180700) et le 2016-10-20 09:00 (1610200900)

touch -t 1610180700 fic1
touch -t 1610200900 fic2
find /var/log/ -type f -newer fic1 -not -newer fic2

SystemD Voir les logs entre deux dates

journalctl --since "2019-10-16 06:00" --until "2019-10-16 10:00" 

Autres

find . -type f -name "*.txt" -print | xargs ls -l -D %Y-%m-%d
tech/find_entre_deux_dates.txt · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki