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
Where are cowrie shells found?
What is the difference between break and continue commands?
What are the zombie processes?
How do I debug a shell script?
What is a shell environment?
What is shell scripting?
Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.
What is web script?
What is a beat in a script?
How do I stop script errors?
What is shell chemistry?
Why is shell scripting important?
How many fields are present in a crontab file and what does each field specify?
what is info area how many types?
What are the 3 standard streams in linux?