Created
July 3, 2018 22:13
-
-
Save adrianpike/b23e026af99f40dd65c01652c4a26924 to your computer and use it in GitHub Desktop.
Quick way to find a filename in the usual way you're wanting to find a filename :)
This file contains hidden or 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
function find_filename() { | |
if [ "$1" != "" ] | |
then | |
find . -not -path '*/\.*' | grep -i $1 | |
else | |
echo "Need a filename" | |
fi | |
} | |
alias ff=find_filename | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment