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
How do I edit a .sh file?
What is a scripting language simple definition?
How do I run a .sh file on mac?
What exactly is a shell?
What are script files?
How will you connect to a database server from linux?
What is a file basename?
What does debug script mean?
Why are there shells on the beach?
write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?
c program the catches the ctrl-c(SIGINT) Signal for the first time and prints a output rather and exit on pressing Ctrl-C again
What is a shell? · Types of shell · what is shell scripting?
What are zombie processes?
Is cmd a shell?
How to check if the previous command was run successfully?