How to sort a result of Ls -l command based on columns. Ex.
i want to sort 5th column from output of ls -l command.
Answer Posted / karunaprakash
Place the selected 5th coloumn in the file file1 and sort
the file1.
$ ls -l | cut -f 5 > file1
$sort file1
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is the difference between bash and shell?
What are different types of shell?
How do I set bash as default shell mac?
What is k shell?
Why do we use shell scripting?
What are the default permissions of a file when it is created?
Which is better perl or shell scripting?
How does shell scripting work?
How to calculate the number of passed arguments?
What are the advantages of using shell scripts?
What are types of shells?
What is the first line in a shell script?
Which shell is the best?
What is another name for a bash shell script that you might see?
Is cmd a shell?