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 / vikas
ls -al | sort | cut -d ' ' -f 5
| Is This Answer Correct ? | 2 Yes | 9 No |
Post New Answer View All Answers
What is the use of echo in shell script?
What is bash coding?
What is the first line of a shell script called?
How to find all the files modified in less than 3 days and save the record in a text file?
I have 2 files and I want to print the records which are common to both.
Is shell scripting difficult?
How many fields are present in a crontab file and what does each field specify?
What is awk script?
What does it mean to debug a script?
Write down the syntax of "for " loop
What is the way to do multilevel if-else's in shell scripting?
What is a shell made of?
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.
How to debug the problems encountered in the shell script/program?
How do I run a .sh file on mac?