Print every nth lines

sed -n '0~3p' filename

# catch 0: start; 3: step
click the source code to copy