首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

shell脚本学习(2)

2012-07-19 
shell脚本学习(二)1。linux中,使转义符生效,-e必须加上echo -e my name is wall-e \noh,i love\teve a.

shell脚本学习(二)

1。linux中,使转义符生效,-e必须加上

echo -e "my name is wall-e \noh,i love\teve" > a.txtcat a.txt    my name is wall-e    oh,i love      everead firestname secondname thirdname  x z cecho -e "hello $firestname $secondname$thirdname"  hello  x zc

?2。tee命令把输出的一个副本送到标准输出,另一个拷贝到相应的文件中。

who | tee who.outecho "helo " > /dev/tty2
?

热点排行