The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Can we use 'tr' command to print 5th column of output of 'ls -l'
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
Can we use 'tr' command to print 5th column of output of 'ls -l'
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
09-14-2007
robotronic
Can I play with madness?
Join Date: Apr 2002
Location: Italy
Posts: 370
tr command is used for translating characters, not for filtering columns from an output. As you said, try this:
Code:
ls -l | awk '{ print $5 }'
robotronic
View Public Profile
Find all posts by robotronic