- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HP-UX grep command Error
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
- 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
01-03-2006 08:06 PM
01-03-2006 08:06 PM
HP-UX grep command Error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2006 08:10 PM
01-03-2006 08:10 PM
Re: HP-UX grep command Error
Which version of HP-UX you are running ? (# uname -a), and what is the patch level of your server ? (#show_patches or # swlist -l patch
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2006 12:13 AM
01-04-2006 12:13 AM
Re: HP-UX grep command Error
just had a quick look at that code and for me this seems to be caused by a little bug that has been introduced with the addition of the new the -w option some time ago.
The grep cmdline option parser goes to an infinite loop, if:
- the w option appears in option block #2 -AND-
- the w option is not the last option in option block #2
Examples (X does not matter):
grep -X -wX
->loops
grep -wX
->does not loop
grep -X -w
->does not loop
Workaround for your example in 8606425190/JAGaf84710:
# ls -l | grep -lwi -f ./t
instead of:
# ls -l | grep -l -wi -f ./t
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2006 12:28 AM
01-04-2006 12:28 AM
Re: HP-UX grep command Error
Aftrer having a closer look I don't believe that the -w option could *ever* work together with the -f option. So forget my suggestion above...
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2006 01:22 AM
01-04-2006 01:22 AM
Re: HP-UX grep command Error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2006 01:30 AM
01-04-2006 01:30 AM