From d72f9b6b551095fa9b063f47942ce2d1461cbd70 Mon Sep 17 00:00:00 2001 From: Niklas Baumstark Date: Tue, 31 May 2016 20:46:48 +0200 Subject: use lowercase grep instead of converting to lowercase --- find | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100755 => 100644 find (limited to 'find') diff --git a/find b/find old mode 100755 new mode 100644 index cd70412..0039a12 --- 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 } -- cgit v1.2.3-54-g00ecf