Update tr

This commit is contained in:
summer-wu 2015-10-07 21:20:06 +08:00
parent 84df17a0f6
commit f3ecf76239

View file

@ -4,6 +4,7 @@ echo $PATH|tr -t ":" \n
#remove all occurance of "ab" #remove all occurance of "ab"
echo aabbcc |tr -d "ab" echo aabbcc |tr -d "ab"
#ouput: cc
#complement "aa" #complement "aa"
echo aabbccd |tr -c "aa" 1 echo aabbccd |tr -c "aa" 1