Use better RE and grep for exelist and liblist.
CVS patchset: 3566 CVS date: 2000/02/17 16:26:52
This commit is contained in:
parent
015dd40885
commit
3a092572e8
|
@ -6,9 +6,9 @@
|
|||
ulimit -c 0
|
||||
|
||||
filelist=`sed "s/['\"]/\\\&/g"`
|
||||
exelist=`echo $filelist | xargs -r file | fgrep executable | cut -d: -f1 `
|
||||
exelist=`echo $filelist | xargs -r file | grep ":.*executable" | cut -d: -f1 `
|
||||
scriptlist=`echo $filelist | xargs -r file | egrep ":.* (commands|script) " | cut -d: -f1 `
|
||||
liblist=`echo $filelist | xargs -r file | grep "shared object" | cut -d : -f1 `
|
||||
liblist=`echo $filelist | xargs -r file | grep ":.*shared object" | cut -d : -f1 `
|
||||
|
||||
for f in $exelist; do
|
||||
if [ -x $f ]; then
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
ulimit -c 0
|
||||
|
||||
filelist=`sed "s/['\"]/\\\&/g"`
|
||||
exelist=`echo $filelist | xargs -r file | fgrep executable | cut -d: -f1 `
|
||||
exelist=`echo $filelist | xargs -r file | grep ":.*executable" | cut -d: -f1 `
|
||||
scriptlist=`echo $filelist | xargs -r file | egrep ":.* (commands|script) " | cut -d: -f1 `
|
||||
liblist=`echo $filelist | xargs -r file | grep "shared object" | cut -d : -f1 `
|
||||
liblist=`echo $filelist | xargs -r file | grep ":.*shared object" | cut -d : -f1 `
|
||||
|
||||
for f in $exelist; do
|
||||
if [ -x $f ]; then
|
||||
|
|
Loading…
Reference in New Issue