Posts Tagged With: even

Remove Even Lines

Tagged with: , , , ,

This command removes all the even lines from the file given as the argument


cat example.txt|awk 'NR%2==1'
No Comments »