Created
February 19, 2016 17:05
-
-
Save jrtaylor-com/9f4b50913be2d6b1b572 to your computer and use it in GitHub Desktop.
Do something with js/css files modified in the last month
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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