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
Is shell a scripting language?
what is info area how many types?
What is $1 in shell scripting?
What is the equivalent of a file shortcut that we have a window on a linux system?
Why should we use shell scripts?
What is shell company all about?
What happens when you type ls?
What is shell prompt?
What is the first line of a shell script called?
Write down the syntax for all the loops in shell scripting.
State the advantages of shell scripting?
What is the first line in every perl script called?
What are the different types of variables used in shell script?
How to check if a directory exists?
How do I save a powershell script?