Mar 3, 2003 #1 Dominal Technical User Joined Mar 2, 2003 Messages 14 Location 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 Joined Jul 27, 2000 Messages 2,146 Location 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 Joined Mar 2, 2003 Messages 14 Location HK Million thanks! Upvote 0 Downvote