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