aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Baumstark <niklas.baumstark@gmail.com>2016-05-31 20:46:48 +0200
committerNiklas Baumstark <niklas.baumstark@gmail.com>2016-05-31 20:46:48 +0200
commitd72f9b6b551095fa9b063f47942ce2d1461cbd70 (patch)
treec1845c8bca5e80bff357817dc4391569e965350f
parent4c0efef01692a35162c2c7995f454260f4ac4294 (diff)
downloadlibc-database-d72f9b6b551095fa9b063f47942ce2d1461cbd70.tar.gz
libc-database-d72f9b6b551095fa9b063f47942ce2d1461cbd70.zip
use lowercase grep instead of converting to lowercase
-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
}