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 is awk script?

546


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.

1856


What are script files?

552


What is the purpose of scripting?

582


What is .sh file in mac?

559






Is shell a part of kernel?

558


What lives in a shell?

539


Suppose you execute a command using exec, what will be the status of your current process in the shell?

581


What is a shell in operating system?

591


How do I run a .sh file on mac?

680


how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?

3605


Explain about the slow execution speed of shells?

777


How important is shell scripting?

545


How to print pid of the current shell?

604


What are the different types of commonly used shells on a typical linux system?

552