copy only last 1000 records of the crushftp.log file to read in visual studio 10

out crushftp.log file is large i tried to read though it in visual studio 10 and it took 2 hours.
I want to be able to only read the last 1000 or so records
when i copy the file can i only copy the last 1000 records or so?
 someone know a better way? i know i can sort it and get the record i want on top
any othere suggestion?
LVL 3
john MAsked:
Who is Participating?
 
john MAuthor Commented:
do you know now at the cmd level to sort a file and select an offset to sort on
on unix it was easy but on the pc i don't see a way
0
 
CodeCruiserCommented:
I dont know if sorting is supported on text files. Is it a CSV file?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
Gerwin Jansen, EE MVETopic Advisor Commented:
Well, the Windows Server 2003 Resource Kit Tools contain a tail command. Will that work for you?
0
 
Bill PrewCommented:
Search for a DOS version of the TAIL command, that should allow you to do this.  GNU Tail or UNXTOOLS are likely versions to check out, but I don't have URLs handy...

~bp
0
 
Gerwin Jansen, EE MVETopic Advisor Commented:
0
 
john MAuthor Commented:
code
its a log file i copy over to an  txt file
i been able to make the sorted files work
The records i need start with an ! so it is first in a sort.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.