#!/bin/sh read name echo "$name It is a test"
[root@www ~]# sh test.shOK # 標準輸入OK It is a test # 輸出
echo -e "OK! \n" # -e 開啓轉義 echo "It it a test"
OK!It it a test
#!/bin/sh echo -e "OK! \c" # -e 開啓轉義 \c 不換行 echo "It is a test"
OK! It is a test
echo -n 123 echo 456
123456
123456
echo `date`
2017年 08月 08日 星期二 21:08:23 CST