> > Have you tried "head" or "tail"? > do you means the head command of the OS,say linux ? > Not yet,using "head" or "tail" will be faster than sed?
My guess would be yes, though probably not much. It should be pretty simple to test. If it's a very large file you may be limited by your I/O speed, not the program.