Ok, this question targets at Unix/Linux shells! I want a shell globbing- (aka wildchard-) expression that matches all files including hidden files in current directory non-recursively (maxdepth == 1). So far I have to perform two commands or use long workarounds (see below):
ls -lad *vim* ls -lad .*vim*
while using the zsh. But if I remember its the same for dash and bash, right?
ls -la | grep vim
find . -maxdepth 1 | grep vim
But I've wondered a hundred times, isn't there a simple globbing solution to this, and why
* does not match the dot character?