removed extra grep

CVS patchset: 1184
CVS date: 1996/11/21 22:16:00
This commit is contained in:
ewt 1996-11-21 22:16:00 +00:00
parent 796032899f
commit 774c0df66a
1 changed files with 4 additions and 3 deletions

View File

@ -1,11 +1,12 @@
#!/bin/bash
#!/bin/sh
# note this works for both a.out and ELF executables
ulimit -c 0
filelist=$(xargs file 2>/dev/null | grep "executable" | cut -d: -f1)
filelist=`xargs -r file | fgrep executable | cut -d: -f1 `
for f in $filelist; do
ldd $f | grep '=>' | awk '{ print $1 }'
ldd $f | awk '/=>/ { print $1 }'
done | sort -u | xargs -r -n 1 basename | sort -u