Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is the use of echo in shell script?

952


What is bash coding?

867


What is the first line of a shell script called?

1031


How to find all the files modified in less than 3 days and save the record in a text file?

1006


I have 2 files and I want to print the records which are common to both.

1108


Is shell scripting difficult?

890


How many fields are present in a crontab file and what does each field specify?

1057


What is awk script?

917


What does it mean to debug a script?

993


Write down the syntax of "for " loop

1035


What is the way to do multilevel if-else's in shell scripting?

1237


What is a shell made of?

905


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.

2423


How to debug the problems encountered in the shell script/program?

1069


How do I run a .sh file on mac?

1084