I want to use this alias for all files that end with .txt
$ f "*.txt"
I expect to get all files that end with txt like foo.txt and bar.txt, not a file called ".txt" The problem is that this command is this searching for files called ".txt" not count * as a glob.
my .bashrc:
#f
f() {
sudo find . -name "$1" 2> /dev/null | grep --color=always $1
}
# F
F() {
sudo find / -name "$1" 2> /dev/null | grep --color=always $1
}