Skip to content

Instantly share code, notes, and snippets.

@ajitam
Created March 16, 2011 09:14
Show Gist options
  • Save ajitam/872218 to your computer and use it in GitHub Desktop.
Save ajitam/872218 to your computer and use it in GitHub Desktop.
Bash script to find files
qfind () {
PS3="Which one: "
select opt in $(find /Users/matija/ -name "$1*" -type f) quit
do
if [[ $opt = "quit" ]]
then
break
fi
open "$opt"
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment