Skip to content

Instantly share code, notes, and snippets.

@jrtaylor-com
Created February 19, 2016 17:05
Show Gist options
  • Save jrtaylor-com/9f4b50913be2d6b1b572 to your computer and use it in GitHub Desktop.
Save jrtaylor-com/9f4b50913be2d6b1b572 to your computer and use it in GitHub Desktop.
Do something with js/css files modified in the last month
for f in $(find /path/to/file -mmin +0 -mmin -43200 -name '*.js' -or -mmin +0 -mmin -43200 -name '*.css');
do
if [[ $f != *"/exclude_this_directory/"* ]]
then command_to_run_against_match $f
fi done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment