The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 03-17-2005
tmarikle tmarikle is offline
Registered User
 

Join Date: Jan 2005
Posts: 682
Quote:
Originally Posted by jhmr7
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.
Code:
ls -l | grep ^d | awk '{print $9}'
Reply With Quote