In the last episode (Dec 11), Michael Beckmann said:
> Greetings,
>
> it appears that tail is not functioning properly with a file > 2 GB.
> What can I do to tail such a file (actually to make it smaller than 2
> GB) ?
It looks like 'tail' wants to mmap() the entire file when you ask for a
standard (last ## lines) tail. If you ask for a particular number of
*bytes* from the end, however, it simply seek()s to that offset and
starts printing. So as a quick hack, you can do a "tail -c 10000000
file | tail", which will first grab the last 10 meg of the file in
question, then print the last 10 lines from that.
This bug has been reported as
http://www.freebsd.org/cgi/query-pr.cgi?pr=14786
--
Dan Nelson
[EMAIL PROTECTED]
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message