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 / rajesh
ls -l | awk '{print $5}'
Is This Answer Correct ? | 7 Yes | 16 No |
Post New Answer View All Answers
What is the crontab?
How to print pid of the current shell?
c program which behaves like a shell(command interpreter). it has its own prompt say "NewShell$".any normal shell command is executed from your shell by starting a child process to execute a system program corrosponding to the command
What is echo in shell?
i have 2 tables 4 colums table 1 respective values a1 6, a2 8,a3 9,a4 14 & table 2 respective values a1 6, a2 8, a3 9, a4 12. if compare 2 tables 3 colums values same then 4th column values 1)Qes diff >5 then (5 * diff value ) 2)Qes diff <5 the 5 3)Qes diff 5 then 5 print respective values..
What is .sh file in mac?
What command needs to be used to take the backup?
Write a command sequence to find all the files modified in less than 2 days and print the record count of each.
I have 2 files and I want to print the records which are common to both.
What is awk script?
Can you write a script to portray how set –x works?
How do you create a shortcut in linux?
How does shell scripting work?
What are the different types of shell scripting?
What is meant by dos operating system?