In a file , how to retrieve the lines which are the
multiples of 50 ? like 50,100,150th lines etc.
Answer Posted / ganeswar bojanapu
Here is simply command
sed -n '50~50'p filename
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What are types of shells?
What are the zombie processes?
What is the use of .sh file?
Which is better perl or shell scripting?
What is an inode block?
What does echo mean in scripting?
How do I run a shell script in powershell?
What is the way to do multilevel if-else's in shell scripting?
Why is shell scripting important?
What is the difference between bash and shell?
How do you know which shell I am using?
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.
Explain about sourcing commands?
What is the syntax of "nested if statement" in shell scripting?
What's the difference between scripting and coding?