Oct 29, 2002 #1 bengalliboy MIS Joined Oct 22, 2001 Messages 215 Location US I got a data file and I want to display the n'th record say line number 500 from it. How should do this? TIA
I got a data file and I want to display the n'th record say line number 500 from it. How should do this? TIA
Oct 29, 2002 #2 vgersh99 Programmer Joined Jul 27, 2000 Messages 2,146 Location US nawk 'FNR == 500' myFile.txt sed -n '500p' myFile.txt vlad +---------------------------+ |#include<disclaimer.h> | +---------------------------+ Upvote 0 Downvote
nawk 'FNR == 500' myFile.txt sed -n '500p' myFile.txt vlad +---------------------------+ |#include<disclaimer.h> | +---------------------------+
Oct 29, 2002 Thread starter #3 bengalliboy MIS Joined Oct 22, 2001 Messages 215 Location US Great@ Thanks a lot@ Upvote 0 Downvote