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
Which shell is the best?
Write a shell script that adds two numbers if provided as the command line argument and if the two numbers are not entered throws an error message.
Write a command sequence to find all the files modified in less than 2 days and print the record count of each.
How can you find out how long the system has been running?
What are the different types of commonly used shells on a typical linux system?
Differentiate between ‘ and ” quotes.
What is basename in shell script?
What is shell geeksforgeeks?
write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?
What can you do with powershell?
What is the first line in a shell script?
How will you emulate wc –l using awk?
What is sed in shell script?
Calculate a real number calculation directly from the terminal and not any shell script.
How to print the first array element?