CoolComputing Logo
Coupons/Deals  ·  New Promo Codes/Coupons  · February 22, 2018

Listing Only Directories In Linux - more ways

Posted on Wednesday, July 17, 2002 @ 02:42:13 PM CDT by David Yee [] [read 2636 times]

 
Tips: Linux/Unix world
Here are two more ways of getting only the directories in Linux

ls -al | grep '^d' | cut -d=":" -f2 | cut -d=" " -f2

ls -1ap | grep / | cut -d"/" -f1

-Vishwanath



Please rate this article or post a brief review of Listing Only Directories In Linux - more ways or comment on benchmark/performance, features, availability, price or anything else regarding Listing Only Directories In Linux - more ways. Thanks!

Listing Only Directories In Linux More Ways Rating: 2.1/5 (10 votes cast)

Your Name:
I have read and agreed to the Review Posting Agreement.
Review Title:
Comment/Review: