![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Want to Get List of All directories | niceboykunal123 | Shell Programming and Scripting | 7 | 06-10-2009 03:05 AM |
| help with script to list directories | chassis | Shell Programming and Scripting | 2 | 09-13-2006 02:17 PM |
| how to list directories only | yodadbl07 | UNIX for Dummies Questions & Answers | 3 | 04-26-2006 05:48 AM |
| How to list only directories? | videsh77 | UNIX for Dummies Questions & Answers | 4 | 01-09-2006 10:10 AM |
| List directories | malaymaru | UNIX for Dummies Questions & Answers | 3 | 09-25-2005 10:54 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Thanks. Please find the display below.
/home/gsk/prod> ls -l | grep ^d drwxrwxr-x 2 gsk stage 96 Mar 17 14:01 0010 drwxrwxr-x 2 gsk stage 96 Mar 17 14:01 0011 drwxrwxr-x 2 gsk stage 96 Mar 17 14:01 0014 But i need to extract only the last column i.e. only the folder names. Please let me know what i need to do. I used cut utility but i can't able to locate the column. Is there any utility which will extract the last column of the display. TIA. |
|
||||
|
Quote:
Code:
ls -l | grep ^d | awk '{print $9}'
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|