- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: tail -n ?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2002 11:22 AM
10-23-2002 11:22 AM
I'm trying to use "tail -1000 logfile" to get the last 1000 lines of a huge logfile. But I only got 310 lines, when I ran the same command on another file I only got 150 lines, is it a buffer size related issue or something else?
BTW, I don't want to use awk to get the result, because it takes long time to go through such huge file.
thanks,
Gary
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2002 11:29 AM
10-23-2002 11:29 AM
Re: tail -n ?
From "man tail"...
"Tails relative to end-of-file are stored in a 20-Kbyte buffer, and thus are limited in length."
Search the forums for "tail limit" and you'll find a number of threads concerning this.
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2002 11:30 AM
10-23-2002 11:30 AM
Re: tail -n ?
HTH
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2002 11:31 AM
10-23-2002 11:31 AM
Re: tail -n ?
Since the answer is already there I can only add a hint.
Why not rotating the log file so you keep it small enough to search through.
See the example scripts at
http://www.introcomp.co.uk/examples/index.html
C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2002 11:33 AM
10-23-2002 11:33 AM
Solutionhttp://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x6cc8d06ed8c8d4118fef0090279cd0f9,00.html
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2002 12:07 PM
10-23-2002 12:07 PM
Re: tail -n ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2002 12:24 PM
10-23-2002 12:24 PM
Re: tail -n ?
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000063218431
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2002 12:27 PM
10-23-2002 12:27 PM
Re: tail -n ?
http://www1.itrc.hp.com/service/cki/patchDocDisplay.do?patchId=PHCO_24707
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2002 12:23 AM
10-25-2002 12:23 AM
Re: tail -n ?
more
thats how you do it! =)
Regards Paul