removed extra grep
CVS patchset: 1184 CVS date: 1996/11/21 22:16:00
This commit is contained in:
parent
796032899f
commit
774c0df66a
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue