Re: Why grep still exists?
* jqdkf@zju.edu.cn (jqdkf@zju.edu.cn) wrote:
> Hi,
>
> I'm just wondering why grep still exists in every distribution of UNIX
> or UNIX like system. As egrep can support a full featured regular
> expression, it is much more powerful than grep. Is it only for backport
> support?
ibroadfo@iain-vaio-fx405:~$ whereis egrep
egrep: /bin/egrep /usr/share/man/man1/egrep.1.gz
ibroadfo@iain-vaio-fx405:~$ ls /bin/egrep
-rwxr-xr-x 1 root root 33 Apr 21 17:02 /bin/egrep*
ibroadfo@iain-vaio-fx405:~$ cat /bin/egrep
#!/bin/sh
exec grep -E ${1+"$@"}
ibroadfo@iain-vaio-fx405:~$
does that answer your question? :D
iain
--
wh33, y1p33 3tc.
"If sharing a thing in no way diminishes it, it is not rightly owned if it is
not shared." -St. Augustine
Reply to: