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 is awk script?
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.
What are script files?
What is the purpose of scripting?
What is .sh file in mac?
Is shell a part of kernel?
What lives in a shell?
Suppose you execute a command using exec, what will be the status of your current process in the shell?
What is a shell in operating system?
How do I run a .sh file on mac?
how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?
Explain about the slow execution speed of shells?
How important is shell scripting?
How to print pid of the current shell?
What are the different types of commonly used shells on a typical linux system?