How can I delete every Xth line in a text file?
You could possibly do it with sed, e.g.
sed -n -e 'p;N;d;' file # print every other line, starting with line 1
If you have GNU sed it's pretty easy
sed -n -e '0~10p' file # print every 10th linesed -n -e '1~2p' file # print every other line starting with line 1sed -n -e '0~2p' file # print every other line starting with line 2