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

Print the 10th line without using tail and head command.

1674


What is path in shell script?

638


How to check if a directory exists?

557


Why are shell scripts used?

624


What does egrep mean?

575






What can you do with powershell?

611


What is the default shell of solaris?

575


Why is used in shell scripting?

560


What is echo in shell?

638


What is shell variable?

530


What is a shell script in windows?

586


What is scripting autism?

703


Explain about "s" permission bit in a file?

617


What is the difference between break and continue commands?

576


What is shell and terminal?

575