I just did strace on "tail -20 <filename>". Apparently, it does seek to
the end and reads enough data to cover 20 lines. I guess it is
calculating this "size" by counting 20 new lines .You may try to do the
same thing. 

Thanks,
Raghu.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to