From 2b3632a44f322ee9e0e2f7fff1c1045c09bbffa3 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 11 Oct 2016 02:47:37 +0300 Subject: bash instead of tr for string conversion --- fix_nt_symbol_path.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fix_nt_symbol_path.sh b/fix_nt_symbol_path.sh index 907d93b..21c0ddd 100644 --- a/fix_nt_symbol_path.sh +++ b/fix_nt_symbol_path.sh @@ -34,9 +34,9 @@ dump() { } str_tolower() { - while [ "$#" -ne 0 ]; do - echo "$1" | tr '[:upper:]' '[:lower:]' - shift + local s + for s; do + echo "${s,,}" # | tr '[:upper:]' '[:lower:]' done } -- cgit v1.2.3