
09-15-2007
|
 |
Shell programmer, author
|
|
Join Date: Mar 2007
Location: Toronto, Canada
Posts: 974
|
|
Quote:
Originally Posted by Nidhi2177
What can we use instead of 'awk' to do the same?? cut???
|
The obvious (and most sensible) command to use is awk.
You can use cut, but first you would have to pipe it through tr to remove multiple spaces:
Code:
ls -l | tr -s ' ' | cut -d ' ' -f 5
|