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 / 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


Please Help Members By Posting Answers For Below Questions

What is the difference between bash and shell?

1167


What are different types of shell?

969


How do I set bash as default shell mac?

1048


What is k shell?

1000


Why do we use shell scripting?

1034


What are the default permissions of a file when it is created?

1066


Which is better perl or shell scripting?

1032


How does shell scripting work?

1159


How to calculate the number of passed arguments?

1162


What are the advantages of using shell scripts?

1107


What are types of shells?

1072


What is the first line in a shell script?

1158


Which shell is the best?

1036


What is another name for a bash shell script that you might see?

1506


Is cmd a shell?

1064