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
When should shell programming/scripting not be used?
What is basename in shell script?
What is shell and terminal?
How do you create a shortcut in linux?
How to print pid of the current shell?
How does shell scripting work?
Why is it called a shell?
is this growing field and what is average package in this?
How do we create command aliases in a shell?
What is option in shell script?
What is bash coding?
Write down the syntax of "for " loop
How do I run a powershell script?
What is bash shell command?
What are the different variables present in linux shell?