You're replying to a comment by Fatih M. KILIÇ.

January 13, 2016, 07:30

Hello, I want to get the line in file with a specific range. For instance, inclusive 8th. 18th. 28th. print the line .... end of file.
My code is:
awk '{ for (NR=8; NR <= 118; NR=NR+10) print; exit }' input.txt
Where is the my fault? This code repeat same lines six times.

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "unix_122": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.