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 awk script?
What is the use of "$?" Sign in shell script?
What are the zombie processes?
Explain about "s" permission bit in a file?
How do I run a script from command prompt?
What happens on a system call?
How will you copy a file from one machine to other?
What is bash coding?
What language is shell scripting?
What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?
How do I run a .sh file?
Determine the output of the following command: name=shubham && echo ‘my name is $name’.
Rewrite the command to print the sentence and convert the variable to plural: echo “i like $variable”.
What is a shell? · Types of shell · what is shell scripting?
How to open a read-only file in the shell?