diff options
author | Niklas Baumstark <niklas.baumstark@gmail.com> | 2016-05-31 20:46:48 +0200 |
---|---|---|
committer | Niklas Baumstark <niklas.baumstark@gmail.com> | 2016-05-31 20:46:48 +0200 |
commit | d72f9b6b551095fa9b063f47942ce2d1461cbd70 (patch) | |
tree | c1845c8bca5e80bff357817dc4391569e965350f | |
parent | 4c0efef01692a35162c2c7995f454260f4ac4294 (diff) | |
download | libc-database-d72f9b6b551095fa9b063f47942ce2d1461cbd70.tar.gz libc-database-d72f9b6b551095fa9b063f47942ce2d1461cbd70.zip |
use lowercase grep instead of converting to lowercase
-rw-r--r--[-rwxr-xr-x] | find | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 } |