- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: grep more than 1 pattern in zip files
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
Discussions
Discussions
Forums
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
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-21-2009 02:26 AM
тАО10-21-2009 02:26 AM
grep more than 1 pattern in zip files
I want to search more than 1 pattern in zipped file . zgrep -e is not working.
Can you please help me to find out a solution?
Regards
Muktha
- Tags:
- grep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2009 02:29 AM
тАО10-21-2009 02:29 AM
Re: grep more than 1 pattern in zip files
Try
zcat
Sunny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2009 02:35 AM
тАО10-21-2009 02:35 AM
Re: grep more than 1 pattern in zip files
I need to search around 10 patterns in 100 files.zcat will take time .Is there any direct command??
Regards
Muktha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2009 02:49 AM
тАО10-21-2009 02:49 AM
Re: grep more than 1 pattern in zip files
"zegrep"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2009 02:52 AM
тАО10-21-2009 02:52 AM
Re: grep more than 1 pattern in zip files
Below is the output I am getting
ksh: zegrep: not found
Regards
Muktha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2009 03:08 AM
тАО10-21-2009 03:08 AM
Re: grep more than 1 pattern in zip files
Is there anyway to ignore 1 file and grep in other files?
Can you help me to find out ?
Regards
Muktha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2009 03:21 AM
тАО10-21-2009 03:21 AM
Re: grep more than 1 pattern in zip files
Prepare list with the filenames - find/ls to temp file, remove unwanted files from the list (skip it) and perform search/grep for patterns.
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2009 04:31 PM
тАО10-21-2009 04:31 PM
Re: grep more than 1 pattern in zip files
Why do you think there is a way that is much faster than zcat?
zcat will of course do I/O to a pipe and that would be wasteful.
>Ivan: Prepare list with the filenames - find/ls to temp file, remove unwanted files from the list
If using real shell you can use patterns like !(foo) to get all but foo.