In a file , how to retrieve the lines which are the
multiples of 50 ? like 50,100,150th lines etc.
Answer Posted / abhishek
awk 'NR % 2 == 0 {print}' abc.txt
Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
Is bash a shell script?
What is the use of echo in shell script?
Explain about login shell?
How to pass an argument to a script?
what is info area how many types?
What is bash shell command?
What is eval in shell script?
What is the use of break command?
How do I run a shell script on a mac?
Which shell is the best?
Which scripting language is best for automation?
How do I set bash as default shell mac?
How do I run a shell script in powershell?
Explain about gui scripting?
What are the different commands available to check the disk usage?