I want to loop through files matching a pattern. They can be in the current directory or sub directories.
I tried:
for file in **/$_pat*; do
but it only finds files in sub directories. I also put the following command in bashrc
and also in the script but it still doesn't work.
shopt -s globstar
shopt
isn't recognized in the script.
shopt: not found