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


Please Help Members By Posting Answers For Below Questions

What is the first line of a shell script called?

565


Explain about "s" permission bit in a file?

601


What are the different variables present in linux shell?

603


What does .sh file contain?

543


write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?

3582






‎What is a shell? · ‎Types of shell · ‎what is shell scripting?

543


What is a shell made of?

552


What are the advantages of shell scripting?

578


What does echo $0 do?

570


What are zombie processes?

562


What are scripts in psychology?

584


How to redirect both standard output and standard error to the same location?

620


What is awk in shell script?

738


What is the significance of the shebang line in shell scripting?

525


What can scripts do?

658