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:
jbj 2000-02-17 16:26:52 +00:00
parent 015dd40885
commit 3a092572e8
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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