Skip to content

Instantly share code, notes, and snippets.

@norrs
Created June 24, 2012 18:09
Show Gist options
  • Save norrs/2984259 to your computer and use it in GitHub Desktop.
Save norrs/2984259 to your computer and use it in GitHub Desktop.
#!/bin/bash
foo="-iname '*.flv' , -iname '*.webm'"
bar () {
find $1 -type f \( $foo \) | while read filename; do
echo $filename
done;
}
zar () {
find $1 -type f \( -iname '*.flv' , -iname '*.webm' \) | while read filename; do
echo $filename
done;
}
#bar $1
zar $1
~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment