how print every nth line into a row using gawk
I have a very huge file in which I need to obtain every nth line and print it into a row.
I want my data to look like this:
This is of course an example, I want every 10th line for my huge data file. I tried this so far:
To print every second line, starting with the first:
To print every tenth line, starting with the tenth line:
To use this in a script, add the following to a file called