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
Explore about environment variables?
What does it mean to debug a script?
What lives in a shell?
What is a shell environment?
What shell is bin sh?
What is the difference between scripting and coding?
What is the lifespan of a variable inside a shell script?
How will you print the login names of all users on a system?
How do I open a jshell in cmd?
Explain how you Automate your application using Shell scripting.
Give some situations where typing error can destroy a program?
Explain about stdin, stdout and stderr?
Write down the syntax of "for " loop
What is a file basename?
What is computer cli?