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


Please Help Members By Posting Answers For Below Questions

What are types of shells?

547


What are the zombie processes?

565


What is the use of .sh file?

599


Which is better perl or shell scripting?

559


What is an inode block?

575






What does echo mean in scripting?

587


How do I run a shell script in powershell?

554


What is the way to do multilevel if-else's in shell scripting?

656


Why is shell scripting important?

570


What is the difference between bash and shell?

641


How do you know which shell I am using?

587


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.

1851


Explain about sourcing commands?

635


What is the syntax of "nested if statement" in shell scripting?

629


What's the difference between scripting and coding?

595