Mar 3, 2003 #1 Dominal Technical User Mar 2, 2003 14 HK Hi! How to remove the even numbers of lines from a text file? i.e. the result only contains lines 1,3,5,7... Thanks!
Hi! How to remove the even numbers of lines from a text file? i.e. the result only contains lines 1,3,5,7... Thanks!
Mar 3, 2003 #2 vgersh99 Programmer Jul 27, 2000 2,146 US nawk 'NR % 2' myFile.txt vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+ Upvote 0 Downvote
nawk 'NR % 2' myFile.txt vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+
Mar 3, 2003 Thread starter #3 Dominal Technical User Mar 2, 2003 14 HK Million thanks! Upvote 0 Downvote