use sed to print every n-th line