megacolorboy

Back

Published on April 10th, 2021

Unix

Find directories created within a date range

Executing these commands helps me create a sorted list of files/directories created within a specific date range:Someday, these commands shall come in handy, bud! 😎

1 minute read

Executing these commands helps me create a sorted list of files/directories created within a specific date range:


touch -t 202104100000 start
touch -t 202104150000 stop
find . -type d -maxdepth 1 -newer start \! -newer stop | sort >> directories.txt

Someday, these commands shall come in handy, bud! 😎