Im trying to use the gsed -n '1~4p' command to only print that line which appears every 8 lines, but apparently it can only be done with a GNU sed, but It doesn't seem that I have one, How would I obtain this?
I have been using sed -n '1,${p;n;n;n;}' , Im not sure if it does the same thing but it doesnt perform print my expected output.
Thanks!