I want to target all files called fooxxxbarxxx. The common thing among all those files is that it contains foo and bar.
I've tried to use *foo*bar* and *foo**bar* but it doesn't work.
Specifically, I'm trying to create soft links to those files, and the rest of the code already works for more straightforward executions (looks into all subfolders of path):
shopt -s globstar
ln -s /path/**/*foo*bar* .
Thanks
echo /path/**/*foo*bar*?