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

How to print the first array element?

978


What are types of shells?

959


What are the different variables present in linux shell?

1038


What are the two files of crontab command?

1140


Is shell script a programming language?

974


How will you find the 99th line of a file using only tail and head command?

2476


What is the difference between break and continue commands?

1034


Explain about "s" permission bit in a file?

993


How to use arguments in a script?

1031


How to get the first line from a file using just the terminal?

1050


How can the contents of a file inside jar be read without extracting in a shell script?

1078


What is bash command used for?

999


What is the use of break command?

1037


What is awk script?

915


Write a shell script to get current date, time, user name and current working directory.

1027