I have a large file.
How can I print every 9th line starting at line 6?
awk NR % 9 == 0' file1 > file2
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community