in reply to Re^2: Most effective bash to perl for directory listing
in thread Most effective bash to perl for directory listing

Is there a way to get glob to output just the directory names but not their entire paths (without just regexing it)

No. But regexing it isn't hard:

perl -E"say for map{ s[$ARGV[0]/][]; $_} glob qq[$ARGV[0]/*]"
are you aware of any resources that instruct specifically on useful shorthand alternatives

Erm. There was a thread a few years called something like Cheap idioms that had some.

Typing "idioms" into the search box top left brings up some similar threads.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

The start of some sanity?