Skip to content

Instantly share code, notes, and snippets.

@soyayaos
Created June 14, 2022 13:00
Show Gist options
  • Save soyayaos/12ddf96fa64423a0d5fb172828856851 to your computer and use it in GitHub Desktop.
Save soyayaos/12ddf96fa64423a0d5fb172828856851 to your computer and use it in GitHub Desktop.
process files in date range
#!/bin/bash
find /path/to/ -type f -newerct "1 May 2022" ! -newerct "1 Jun 2022" -print0 | while read -d
$'\0' file
do
echo "$file"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment