Eg: Find command to search for txt files
find . -iname "*.txt"
I want to create an alias of find
command in .bash_profile
so that upon sourcing .bash_profile
I should be able to pass any arguments to find command to search the file types:
find txt find pdf find doc
I tried below syntax to override find command as:
find ./ -iname "$1"
where $1 can be any argument file type.