X-zcer / PIT-with-RTS

0 stars 0 forks source link

(六十四)制表符\t在${}中的写法 #65

Open X-zcer opened 6 years ago

X-zcer commented 6 years ago

用\t是不行的,用按下ctrl+v键然后按tab键输入是可以的,但是由于显示为空白很容易和空格混淆

`using the same way

$ line=$(echo -e "ABC\t123")

$ echo "$line" ABC 123

$ echo ${line##*$(echo -e "\t")} 123`