From 774c0df66a42f7e4fa85167f9aeee503d788dca2 Mon Sep 17 00:00:00 2001 From: ewt Date: Thu, 21 Nov 1996 22:16:00 +0000 Subject: removed extra grep CVS patchset: 1184 CVS date: 1996/11/21 22:16:00 --- autodeps/linux.req | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'autodeps') diff --git a/autodeps/linux.req b/autodeps/linux.req index 4483ca685..3f8c209db 100644 --- a/autodeps/linux.req +++ b/autodeps/linux.req @@ -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 + -- cgit v1.2.3