1825780 Members
1967 Online
109687 Solutions
New Discussion

Re: Sort

 
SOLVED
Go to solution
Indrajit Bhagat
Regular Advisor

Sort

how to sort the directory and file by the owner name.
2 REPLIES 2
James R. Ferguson
Acclaimed Contributor
Solution

Re: Sort

Hi:

# ls -l|sort -k3,3

Regards!

...JRF...
Suraj Kumar Sankari
Occasional Advisor

Re: Sort

Hi Indrajit,
The above command is perfect but you can use this also
ls -l | awk '{ print $3" "$0 }' | sort