Apr 19 2010 08:29 AM 8968 7 Fetch Records from a File sweetysmarty What is the command to fetch first 10 records in a file? sunil Jul 27th, 2011 Command as follows HEAD -10 filename and for lower records TAIL -10 filename srnayak17 Profile Answers by srnayak17 Questions by srnayak17 May 20th, 2010 It would be always safe to use 'sed command'sed -n '1-10p' filename > outputfile Answer Question Select Best Answer
Apr 19 2010 08:29 AM 8968 7 Fetch Records from a File sweetysmarty What is the command to fetch first 10 records in a file? sunil Jul 27th, 2011 Command as follows HEAD -10 filename and for lower records TAIL -10 filename srnayak17 Profile Answers by srnayak17 Questions by srnayak17 May 20th, 2010 It would be always safe to use 'sed command'sed -n '1-10p' filename > outputfile Answer Question Select Best Answer
srnayak17 Profile Answers by srnayak17 Questions by srnayak17 May 20th, 2010 It would be always safe to use 'sed command'sed -n '1-10p' filename > outputfile