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
Hello all, This is my assignment on shell scripting, can anyone help me regarding this ? Create a shell script which connects to the database In second shell script include the first script for the DB connection Create a table (PRADEEP_DATA) with 2 columns (name, value) In Third shell script include the first script for the DB connection And insert/delete the values from the Table, by accepting input from the user This functionality should be a menu driven Program: 1) Insert to the database a. Name b. value 2)Delete from the database a.Name b.value Exception handling needs to be taken care.
How do I run a bin bash script?
How do I run a .sh file?
Which is better perl or shell scripting?
What does $0 mean in shell script?
In my bash shell I want my prompt to be of format '$"present working directory":"hostname"> and load a file containing a list of user-defined functions as soon as I log in, how will you automate this?
How to find duplicate record in file using shell script?
What language is bash written in?
How do I start a shell script?
What is web script?
What is awk script?
Rewrite the command to print the sentence and convert the variable to plural: echo “i like $variable”.
What are script files?
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.
What happens on a system call?