- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Search skills
Operating System - HP-UX
1753508
Members
4981
Online
108795
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-16-2009 02:10 AM
тАО07-16-2009 02:10 AM
Search skills
Hi
I have a file which contains the daily logs from time 0000 to 2359hrs for a single day. How to retrieve only those 1400 to 1500?
Inside the log, you will see, for example, Jul 2 00:00:00 to Jul 2 23:59:59
Thanks
Feng Lin
I have a file which contains the daily logs from time 0000 to 2359hrs for a single day. How to retrieve only those 1400 to 1500?
Inside the log, you will see, for example, Jul 2 00:00:00 to Jul 2 23:59:59
Thanks
Feng Lin
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-16-2009 03:29 AM
тАО07-16-2009 03:29 AM
Re: Search skills
Hi Fenglin,
What simple grep returns?
#grep "14:*"
This should return the entries from 14:00:00 to 14:59:59 from the log file
What simple grep returns?
#grep "14:*"
This should return the entries from 14:00:00 to 14:59:59 from the log file
Best wishes,
Ganesh.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-16-2009 03:32 AM
тАО07-16-2009 03:32 AM
Re: Search skills
Hi again,
If the log file contains more than one day entry, then use like this..
#grep "Jul 2 14:*"
Note the space is important as it appear inside the log file.
If the log file contains more than one day entry, then use like this..
#grep "Jul 2 14:*"
Note the space is important as it appear inside the log file.
Best wishes,
Ganesh.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-16-2009 04:07 AM
тАО07-16-2009 04:07 AM
Re: Search skills
Hi Feng:
# grep -E "14:[0-5][0-9]:" log
Regards!
...JRF...
# grep -E "14:[0-5][0-9]:" log
Regards!
...JRF...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP