aboutsummaryrefslogtreecommitdiff
path: root/identify
diff options
context:
space:
mode:
authorNiklas Baumstark <niklas.baumstark@gmail.com>2015-09-21 14:41:44 +0200
committerNiklas Baumstark <niklas.baumstark@gmail.com>2015-09-21 14:41:44 +0200
commitc2a7d05aaa87027789aa22b926c9f074633e43b8 (patch)
treede80ef6d91392e43e2fb93a7d8180514062557b0 /identify
parentaa03bc5a74fa106c6a32907cf6523a7cbcd5c580 (diff)
downloadlibc-database-c2a7d05aaa87027789aa22b926c9f074633e43b8.tar.gz
libc-database-c2a7d05aaa87027789aa22b926c9f074633e43b8.zip
update identify script and README
Diffstat (limited to 'identify')
-rwxr-xr-xidentify4
1 files changed, 2 insertions, 2 deletions
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"'