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
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
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
тАО08-02-2005 02:14 AM
тАО08-02-2005 02:14 AM
egrep
or it's not included in all the unix's
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-02-2005 02:19 AM
тАО08-02-2005 02:19 AM
Re: egrep
If reality proves me wrong You can try to use gnu grep (part of fileutils, iirc).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-02-2005 02:21 AM
тАО08-02-2005 02:21 AM
Re: egrep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-02-2005 02:23 AM
тАО08-02-2005 02:23 AM
Re: egrep
1215 -r-xr-xr-x 3 bin bin 24576 Nov 14 2000 /usr/bin/egrep
1215 -r-xr-xr-x 3 bin bin 24576 Nov 14 2000 /usr/bin/fgrep
1215 -r-xr-xr-x 3 bin bin 24576 Nov 14 2000 /usr/bin/grep
So, I think, they are togheter in all HPUX releases.
RGDS
Mauro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-02-2005 02:24 AM
тАО08-02-2005 02:24 AM
Re: egrep
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-02-2005 02:26 AM
тАО08-02-2005 02:26 AM
Re: egrep
But they come with every installation.
Why do you want egrep.
Practically speaking grep is more powerful than egrep.
Just use -E with grep.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-02-2005 02:35 AM
тАО08-02-2005 02:35 AM
Re: egrep
so:
# ls -li /usr/bin/*grep
1215 -r-xr-xr-x 3 bin bin 24576 Nov 14 2000 /usr/bin/egrep
1215 -r-xr-xr-x 3 bin bin 24576 Nov 14 2000 /usr/bin/fgrep
1215 -r-xr-xr-x 3 bin bin 24576 Nov 14 2000 /usr/bin/grep
8389 -r-xr-xr-x 1 bin bin 24576 Nov 14 2000 /usr/bin/nisgrep
means the first three files are statically linked toghether and are the same file with inode 1215
RGDS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-02-2005 02:42 AM
тАО08-02-2005 02:42 AM
Re: egrep
# find /usr/bin -inum 38 -exec ls -li {} \;
38 -r-xr-xr-x 7 bin bin 28672 May 5 2003 /usr/bin/l
38 -r-xr-xr-x 7 bin bin 28672 May 5 2003 /usr/bin/lc
38 -r-xr-xr-x 7 bin bin 28672 May 5 2003 /usr/bin/ll
38 -r-xr-xr-x 7 bin bin 28672 May 5 2003 /usr/bin/ls
38 -r-xr-xr-x 7 bin bin 28672 May 5 2003 /usr/bin/lsf
38 -r-xr-xr-x 7 bin bin 28672 May 5 2003 /usr/bin/lsr
38 -r-xr-xr-x 7 bin bin 28672 May 5 2003 /usr/bin/lsx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-02-2005 03:03 AM
тАО08-02-2005 03:03 AM
Re: egrep
Inside the code, it knows which of three "greps" its being referenced as so it behaves according to what that "grep" does.
Same for the ll and others.