[BraLUG] fgrep, egrep und grep als Symlinks
slipway at inbev.de
slipway at inbev.de
Sa Dez 17 01:29:11 CET 2011
[root at susa:~]
# uname -srvi
Linux 2.6.32-131.0.15.el6.x86_64 #1 SMP Sat May 21 10:27:57 CDT 2011 x86_64
[root at susa:~]
# rpm -qi sl-release
Name : sl-release Relocations: (not relocatable)
Version : 6.1 Vendor: Scientific Linux
Release : 2 Build Date: Wed 27 Jul
2011 05:07:19 PM CEST
Install Date: Tue 30 Aug 2011 09:14:54 AM CEST Build Host: sl6.fnal.gov
Group : System Environment/Base Source RPM:
sl-release-6.1-2.src.rpm
Size : 42184 License: GPLv2
Signature : DSA/SHA1, Wed 27 Jul 2011 05:10:10 PM CEST, Key ID
b0b4183f192a7d7d
Packager : Scientific Linux
Summary : Scientific Linux release file
Description :
Scientific Linux release files
[root at susa:~]
# ls -il /bin/*grep
5733 -rwxr-xr-x 1 root root 106528 Nov 23 2010 /bin/egrep
797 -rwxr-xr-x 1 root root 71456 Nov 23 2010 /bin/fgrep
1984 -rwxr-xr-x 1 root root 111360 Nov 23 2010 /bin/grep
[root at susa:~]
# file /bin/*grep
/bin/egrep: ELF 64-bit LSB executable, x86-64, version 1 (SYSV),
dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
/bin/fgrep: ELF 64-bit LSB executable, x86-64, version 1 (SYSV),
dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
/bin/grep: ELF 64-bit LSB executable, x86-64, version 1 (SYSV),
dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
[root at susa:~]
# rpm -qf /bin/*grep
grep-2.6.3-2.el6.x86_64
grep-2.6.3-2.el6.x86_64
grep-2.6.3-2.el6.x86_64
Quoting "Frank Hofmann" <frank.hofmann at efho.de>:
> Hallo zusammen,
>
> bei früheren Debian-Releases (bis Etch / 4.0) waren fgrep und egrep Sym-
> oder Hardlinks auf grep:
>
> $ cat /bin/fgrep
> #!/bin/sh
> exec grep -F ${1+"$@"}
> $
>
> Mittlerweile hat sich das geändert und es sind eigenständige Binaries
> geworden. Weiß jemand, wie das bei den anderen Distris gehandhabt wird?
>
> ... interessiert sich Frank
>
> --
> Dipl.-Inf. Frank Hofmann
> Hofmann EDV - Linux, Layout und Satz
> c/o buero 2.0
> 12059 Berlin - Weigandufer 45
> web http://www.efho.de
> mail frank.hofmann at efho.de
> tel 030/2000 586 80
>
Mehr Informationen über die Mailingliste Bralug