In Zsh: Is there a way to use
ls to only list files and folders in the current directory that match a specific globbing or regex pattern?
For example, say I have multiple files that start with the character
#, the following command does not do what I want:
ls -l #*
I know I can do this with find, i.e.
find . "#*" -maxdepth 1 -print, but I am looking for a solution that lists files and folders with permissions in
I presume that one way of doing this is by parsing the output of ls (but AFAIK this is usually not recommended).