In a file , how to retrieve the lines which are the
multiples of 50 ? like 50,100,150th lines etc.
Answer Posted / kavita
awk 'NR % 50 ==0 {print}' filename
| Is This Answer Correct ? | 6 Yes | 2 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.
Write down the syntax for all the loops in shell scripting.
Is shell and terminal the same?
I want to connect to a remote server and execute some commands, how can I achieve this?
What is a shell made of?
What is the fastest scripting language?
How to use arguments in a script?
What lives in a shell?
What is wc in shell script?
What is an inode block?
I have 2 files and I want to print the records which are common to both.
What are the two files of crontab command?
What is a file basename?
Calculate a real number calculation directly from the terminal and not any shell script.
Please give me example of " at command , contrab command " how to use