$ cat file1 one two three four five six seven $ awk 'NR%2 {print > "newfile"}' file1 $ cat newfile one three five seven