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 / amrapalee jawalikar
ls -l | sort +4 -5
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is the difference between break and continue commands?
What is shell company all about?
How to get the first line from a file using just the terminal?
What is basename in shell script?
Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.
What is the difference between grep and egrep?
What is the equivalent of a file shortcut that we have a window on a linux system?
How do I debug a shell script?
When should shell programming/scripting not be used?
How can I send a mail with a compressed file as an attachment?
Give some situations where typing error can destroy a program?
Write a command sequence to find the count of each word?
What is the difference between bash and shell?
write a shell script to check the failed jobs?
Is shell a scripting language?