Linux Gvim shell echo命令

#echo命令:shell的内部指令,用于在屏幕上打印指定的字符串

1 a=10
2 echo \" this is a test \"

#下列第二个执行效率高,第一个则是充分利用了双引号,但不是效率最高的写法

1 echo " 接收到 , ${a} "
2 echo ' 接收到' ,${a}

#显示不换行.以下在同一行输出 ok! this is a test

1 echo -e " ok!\c "
2 echo " this is a test "

#执行时间命令

1 echo ` date `

#显示结果写入myFile文件,如果文件不存在则会创建此文件

1 echo " this is a test " > myFIle

 

posted @ 2016-06-09 09:30  Blog4Matto  阅读(292)  评论(0编辑  收藏  举报