shell使用echo打印輸出及printf格式化輸出

shell 打印輸出 shell主要有兩種輸出,echo,printf,格式化輸出經常使用printfweb 1.echo echo是很經常使用的打印輸出命令: 如:shell echo echo ' ' echo 'hello' echo "hello" 值得注意的是單引號(’)與雙引號(「)略有區別 單引號直接輸出後面的字符串,而雙引號能夠引入變量 例如:ruby [root@mytest ~
相關文章
相關標籤/搜索