I'm trying something like this:
fd -H --extension json '' '.*'
But it leads to [fd error]: '.*' is not a directory.. I am aware of --search-paths and also tried -p ... but can't get it working.
I guess another way to ask is how to use globs for directories / paths.
Don't quote the .*. What you have is searching in the literal directory .* Instead of doing shell expansion.
@tmccombs Thanks, and the actual glob should be .*/ so that only directories are included (without the trailing slash, also files will be listed, leading to errors like [fd error]: '.xyz' is not a directory).
Most helpful comment
Don't quote the
.*. What you have is searching in the literal directory.*Instead of doing shell expansion.