Skip to content

Instantly share code, notes, and snippets.

@wheelq
Last active October 18, 2019 06:12
Show Gist options
  • Save wheelq/483dfc20fa6640ff3070c8c815b716e4 to your computer and use it in GitHub Desktop.
Save wheelq/483dfc20fa6640ff3070c8c815b716e4 to your computer and use it in GitHub Desktop.
alias for finding files
#old alias ffile='function _myfind(){ if [ -z $1 ]; then echo "arg1-location, arg2-filename";else find $1 -type f -iname "*$2*" 2>/dev/null;unset -f __ffile;fi };_my find'
alias ffile='function __ffile(){ if [ -z $1 ]; then echo "arg1-location, arg2-filename";else find $1 -type f -iname "*$2*" 2>/dev/null;unset -f __ffile;fi }; __ffile'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment