use rune/case instead of tr. in many cases it doesn't matter, but it is easier to audit for correctness this way. Reference: /n/atom/patch/applied/runecaseify Date: Mon Sep 28 07:55:15 CES 2015 Signed-off-by: quanstro@quanstr.net --- /rc/bin/etheroui Mon Sep 28 07:54:20 2015 +++ /rc/bin/etheroui Mon Sep 28 07:54:21 2015 @@ -1,8 +1,7 @@ #!/bin/rc rfork e for(i){ - i=`{echo $i| - tr 'A-Z' 'a-z' | + i=`{rune/case $i| sed 's/[^a-f0-9]//g s/(......).*/\1/g'} look $i /lib/oui --- /rc/bin/wwnoui Mon Sep 28 07:54:23 2015 +++ /rc/bin/wwnoui Mon Sep 28 07:54:24 2015 @@ -1,8 +1,7 @@ #!/bin/rc rfork e for(i){ - i=`{echo $i| - tr 'A-Z' 'a-z' | + i=`{rune/case $i | sed 's/^.(......).*/\1/g'} look $i /lib/oui } --- /rc/bin/usbid Mon Sep 28 07:54:26 2015 +++ /rc/bin/usbid Mon Sep 28 07:54:27 2015 @@ -60,7 +60,7 @@ if(! ~ $#* 0){ { - for(i in `{echo $* | tr 'A-Z' 'a-z'}) + for(i in `{rune/case $*) echo $i } | verbose 1 exit '' --- /rc/bin/stock Mon Sep 28 07:54:29 2015 +++ /rc/bin/stock Mon Sep 28 07:54:30 2015 @@ -2,7 +2,8 @@ stock=ALU -if(! ~ $#* 0) stock=`{echo $*|tr a-z A-Z|sed 's/ /+/g'} +if(! ~ $#* 0) + stock=`{echo $*|rune/case|sed 's/ /+/g'} hget 'http://download.finance.yahoo.com/d/quotes.csv?s='^$stock^'&f=snl1d1c1v&e=.exe' | sed 's/ +"/"/;s/ //' |