Does anyone know how to use awk to print every 3rd line from the 1st line and including the 1st line?
1st
..
3rd
..
..
3rd
..
..
3rd
soemthing like this?
the closest I could get was below, but it dosn't go beyond the 3rd line.. any ideas? or sed maybe?
awk 'NR%3==1' file.txt