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

ls -l | awk '{print $5}'

Is This Answer Correct ?    7 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is awk script?

936


What is the use of "$?" Sign in shell script?

1123


What are the zombie processes?

932


Explain about "s" permission bit in a file?

1016


How do I run a script from command prompt?

1016


What happens on a system call?

962


How will you copy a file from one machine to other?

962


What is bash coding?

881


What language is shell scripting?

987


What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?

1027


How do I run a .sh file?

980


Determine the output of the following command: name=shubham && echo ‘my name is $name’.

952


Rewrite the command to print the sentence and convert the variable to plural: echo “i like $variable”.

1038


‎What is a shell? · ‎Types of shell · ‎what is shell scripting?

939


How to open a read-only file in the shell?

1094