From c2a7d05aaa87027789aa22b926c9f074633e43b8 Mon Sep 17 00:00:00 2001 From: Niklas Baumstark Date: Mon, 21 Sep 2015 14:41:44 +0200 Subject: update identify script and README --- identify | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'identify') diff --git a/identify b/identify index 1547261..2e96fd9 100755 --- a/identify +++ b/identify @@ -4,5 +4,5 @@ if [[ $# != 1 ]]; then exit 2 fi libc=$1 -sha1=`sha1sum $libc` -sha1sum db/*.so | grep `echo $sha1 | awk '{print $1 }'` +sha1=`sha1sum $libc | awk '{print $1}'` +sha1sum db/*.so | grep "$sha1 " | perl -n -e '/db\/(.*)\.so/&&print "id $1\n"' -- cgit v1.2.3