技术宅,fat-man

增加语言的了解程度可以避免写出愚蠢的代码

导航

2014年1月23日 #

一个小知识,shell如何输出换行符号

摘要: 一般来说如果在echo里直接写上\n,他不会被转义,必须加上-e参数echo "hello\n morning"# 输出为 hello\n morningecho -e "hello\n morning"# 输出为 #hello# morning貌似如果带-e参数,!等符号也变成shell的运算符,所以-e还是不能滥用 阅读全文

posted @ 2014-01-23 10:35 codestyle 阅读(10027) 评论(0) 推荐(1)