aboutsummaryrefslogtreecommitdiff
path: root/find
diff options
context:
space:
mode:
Diffstat (limited to 'find')
-rw-r--r--[-rwxr-xr-x]find4
1 files changed, 2 insertions, 2 deletions
diff --git a/find b/find
index cd70412..0039a12 100755..100644
--- a/find
+++ b/find
@@ -7,8 +7,8 @@ function usage() {
function find_single() {
name=$1
address=$2
- addr_last12=`echo -n "$address" | tail -c 3 | tr '[:upper:]' '[:lower:]'`
- grep -e "^$name .*$addr_last12$" db/*.symbols \
+ addr_last12=`echo -n "$address" | tail -c 3`
+ grep -i -e "^$name .*$addr_last12$" db/*.symbols \
| perl -n -e '/db\/(.*)\.symbols/ && print "$1\n"' \
| sort
}