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

Listing Only Directories In Linux

Posted on Thursday, June 20, 2002 @ 12:19:01 AM CDT by David Yee [] [read 2743 times]

 
Tips: Linux/Unix world

1. This can be done using "awk" as follows
ls -al | grep '^d' | awk ' { print $9 } '

2. Second method can be achieved using "cut" command
ls -al | grep '^d' | cut --delimiter=":" -f2 | cut --delimiter=" " -f2





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

Listing Only Directories In Linux Rating: 2.0/5 (7 votes cast)

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