I'm still very newbie in bash programming...
I made this script to delete something like 'typescript' that cluttering in my home dir and its sub-dirs.
here's the script
if [ "$0" = "./$1" ] || [ "$#" -ne 1 ]
echo " usage: $0 [namafile] "
for x in $(find ./ -follow -name "$1")
rm -v $x
But i want to make this script 'smarter'.
Currently it can only accept argument with literal pattern.
It can't accept wildcard. How to make my script accept wildcard,
so i can use this to delete files like foo1,foo2,fooyou.
just by typing
tnx in advance.