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 shell geeksforgeeks?

594


What is shell and terminal?

575


How do I run a script from command prompt?

560


What is a shell script in windows?

586


How do I run a powershell script?

576






Explain about sourcing commands?

636


State the advantages of shell scripting?

594


What is an sh file?

555


Which shell is the best?

574


How important is shell scripting?

543


write a shell script to check the failed jobs?

3955


What is inside a seashell?

635


What is bash coding?

497


Explain about echo command?

625


What makes c shell a more preferable option than the bourne shell?

540