As far as I know, in bash, you have to enable both globstar and dotglob to be able to match any file recursively with a single pattern:
shopt -s globstar dotglob
echo **/*
See:
man bash |...
Type: Posts; User: sisco311; Keyword(s):
As far as I know, in bash, you have to enable both globstar and dotglob to be able to match any file recursively with a single pattern:
shopt -s globstar dotglob
echo **/*
See:
man bash |...
If the dotglob option is enabled, then * matches any file exept the hard
links to the current and parent directories (. and ..):
shopt -s dotglob
echo *
shopt -u dotglob