[ad_1]
Filter on the line numbers; only match those divisible by 3.
awk 'NR % 3 == 0' file.txt
0
[ad_2]
solved Bash- awk one liner { print every third line of a text file }
[ad_1]
Filter on the line numbers; only match those divisible by 3.
awk 'NR % 3 == 0' file.txt
0
[ad_2]
solved Bash- awk one liner { print every third line of a text file }