In a file , how to retrieve the lines which are the
multiples of 50 ? like 50,100,150th lines etc.
Answer Posted / ramesh jp
awk 'NR % 50 == 0' print
| Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
What are the advantages of using shell scripts?
What is the difference between grep and egrep?
How to pass an argument to a script?
How to get the first line from a file using just the terminal?
What does echo mean in scripting?
I have 2 files and I want to print the records which are common to both.
Is shell scripting difficult?
How to print the first array element?
Why is shell scripting important?
How do I run a shell script in powershell?
What is the command to find out users on the system?
What is shell and shell script?
How will you copy a file from one machine to other?
How to open a read-only file in the shell?
What can scripts do?