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

Explore about environment variables?

1029


What does it mean to debug a script?

1046


What lives in a shell?

954


What is a shell environment?

991


What shell is bin sh?

957


What is the difference between scripting and coding?

1032


What is the lifespan of a variable inside a shell script?

1645


How will you print the login names of all users on a system?

959


How do I open a jshell in cmd?

1234


Explain how you Automate your application using Shell scripting.

2312


Give some situations where typing error can destroy a program?

1240


Explain about stdin, stdout and stderr?

1168


Write down the syntax of "for " loop

1091


What is a file basename?

1041


What is computer cli?

893