Skip to content

Instantly share code, notes, and snippets.

@jrtaylor-com
Created February 19, 2016 17:05
Show Gist options
  • Select an option

  • Save jrtaylor-com/9f4b50913be2d6b1b572 to your computer and use it in GitHub Desktop.

Select an option

Save jrtaylor-com/9f4b50913be2d6b1b572 to your computer and use it in GitHub Desktop.

Revisions

  1. jrtaylor-com created this gist Feb 19, 2016.
    5 changes: 5 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    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;