浏览代码

echo: added -n, -e examples (#963)

Agam Agarwal 8 年之前
父节点
当前提交
87540fec49
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      pages/common/echo.md

+ 8 - 0
pages/common/echo.md

@@ -9,3 +9,11 @@
 - Print a message with environment variables:
 
 `echo {{"My path is $PATH"}}`
+
+- Print a message without the trailing newline:
+
+`echo -n {{"Hello World"}}`
+
+- Enable interpretation of backslash escapes (special characters):
+
+`echo -e {{"Column 1\tColumn 2"}}`