I'm trying to get the first few lines of a huge text file (100K records of a DB table) and it's too large to really manipulate in a text editor.
If I was in linux, I'd use head. I know I can use
more +99995 dbfile.txt
to get the last 5 lines in the file. Is there an equivalent (and simple) method of getting the FIRST lines and logging like this?
Thank you.
(Please note that being able to log this is a must).
Why mention toys like Unix in a Windows group. Not smart are you.
Cut
Cuts the number of lines from the top or bottom of file.
Example
The script