3.3.5. 打印输入(echo)
使用 echo 命令将输入打印到屏幕。使用
$out
变量打印最后一个 shell 命令输出。
语法
echo [input]
例 3.14. echo示例
打印输入:
[RHEVM shell (connected)]# echo "Example text!"
[RHEVM shell (connected)]# echo "Example text!"
打印最后一个输出:
[RHEVM shell (connected)]# echo $out
[RHEVM shell (connected)]# echo $out