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.
|
|---|