- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How do I do "tail -r" in HP-UX
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
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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
07-03-2001 08:45 AM
07-03-2001 08:45 AM
How do I do "tail -r" in HP-UX
In some other (lesser) flavors of UNIX there is a very useful option for tail:
-r Reverse. Copies lines from the
specified starting point in the file
in reverse order.
This is VERY useful for viewing logfiles, but oddly missing from the tail in HP-UX. Any help?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2001 08:53 AM
07-03-2001 08:53 AM
Re: How do I do "tail -r" in HP-UX
http://devresource.hp.com/STK/man/11.00/tail_1.html
try less ?
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2001 08:55 AM
07-03-2001 08:55 AM
Re: How do I do "tail -r" in HP-UX
You could hack it this way:
# tail
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2001 08:57 AM
07-03-2001 08:57 AM
Re: How do I do "tail -r" in HP-UX
vi file.log
G "to go to bottom"
k "to scrollup"
:q! "to exit"
...jcd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2001 09:33 AM
07-03-2001 09:33 AM
Re: How do I do "tail -r" in HP-UX
perl -e 'print reverse <>' whatever.log
But again I'm worried that a really large log would be a problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2001 11:21 AM
07-03-2001 11:21 AM
Re: How do I do "tail -r" in HP-UX
I agree that the perl solution is straightforward. Whether 'awk' is "awk"ward or not is philosophical. You didn't indicate any constraints when you posed your question. ;-)
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2001 04:55 PM
07-03-2001 04:55 PM
Re: How do I do "tail -r" in HP-UX
oops! That should be 'tail' piped to 'awk', as:
# tail
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2001 01:15 AM
07-04-2001 01:15 AM
Re: How do I do "tail -r" in HP-UX
tail -f fileName
allow you to display on screen the last modifications on a specific file.
This is useful for monitoring log files.
Magdi