I have created the following alias in my
.bashrc
file:
alias find='find . -type f -name'
This obviates the need to type . -type f -name
every time I do a file search. However, I still have to enclose search strings with '\*...*'. How could I include these in the alias, so that instead of having to type:
find '*string*'
I could just type,
find string
Asked by edman
(588 rep)
Jul 27, 2021, 04:57 PM
Last activity: Jun 29, 2025, 06:27 AM
Last activity: Jun 29, 2025, 06:27 AM