I'm almost certain that this is not something that the
zsh shell provides a way of doing, but I thought I'd ask anyway just to make sure I'm not missing anything from the manual.
zsh shell, I can pick out the two largest visible files from a directory with the pattern
If I have a set of directories, and I would want to have the two largest files from each, I believe I would have to loop over the individual directories and then use
$dirpath is the directory path in the current iteration of the loop).
It would be nice to be able to say
but that glob qualifier would apply to the list of matching names as a whole, and I would get two matches, not two from each directory.
Question: Would it be possible to limit the "scope" of the qualifier to only affect the most recent path component somehow?