I am working on a Perl script to read a CSV file and do some calculations. A CSV file has only two columns, something like below.
One Two 1.00 44.000 3.00 55.000
Now this CSV file is very large, maybe from 10 MB to 2 GB.
I am currently taking a 700 MB CSV file. I tried to open this file in notepad, but it looks like no software will open it.
I want to read the last 1000 lines from a CSV file and see the values. How can i do this? I can not open the file in notepad or in any other program.
If I write a Perl script, then I need to process the complete file to go to the end of the file and then read the last 1000 lines.
Is there a better way? I am new to Perl and any suggestions would be appreciated.
I searched the web and there are some scripts available as File :: Tail, but I donβt know that they will work on Windows?
perl large-files
anand
source share