- 论坛徽章:
- 0
|
为什么会这样?同样的命令grep -s echo
有的能够得到文件属性,有的就不可以?
[root@redhat73 virus]# grep -s echo /bin/*
Binary file /bin/ash matches
Binary file /bin/ash.static matches
Binary file /bin/bash matches
Binary file /bin/bash2 matches
Binary file /bin/bsh matches
Binary file /bin/csh matches
Binary file /bin/echo matches
Binary file /bin/ex matches
Binary file /bin/gettext matches
/bin/igawk: echo "$0 needs mktemp to create temporary files."
/bin/igawk: -f) echo @include "$2" >> $STEMPFILE
/bin/igawk: -f*) f=`echo "$1" | sed 's/-f//'`
/bin/igawk: echo @include "$f" >> $STEMPFILE ;;
/bin/igawk: f=`echo "$1" | sed 's/-.file=//'`
/bin/igawk: echo @include "$f" >> $STEMPFILE ;;
/bin/igawk: echo @include "$2" >> $STEMPFILE
/bin/igawk: t=`echo "$1" | sed 's/-.source=//'`
/bin/igawk: echo "$t" >> $STEMPFILE ;;
/bin/igawk: echo "$2" >> $STEMPFILE
/bin/igawk: echo igawk: version 1.0 1>&2
/bin/igawk: echo igawk: no program! 1>&2
/bin/igawk: echo "$1" > $STEMPFILE
Binary file /bin/mail matches
Binary file /bin/netstat matches
Binary file /bin/rpm matches
Binary file /bin/rvi matches
Binary file /bin/rview matches
Binary file /bin/sh matches
Binary file /bin/stty matches
Binary file /bin/tcsh matches
Binary file /bin/vi matches
Binary file /bin/view matches
[root@redhat73 virus]# grep -s echo ./*
[root@redhat73 virus]# file ./*
./ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped
./mv: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped
./test: Bourne shell script text executable
./virus.sh: ASCII text |
|