Shell脚本命令汇总中

一、换行

echo -e 可以通过\n编译换行

echo -n不换行,如果加入了\n,则会打出“\n”字符

#!/bin/bash
echo -e "O\nK\n!"
echo "It is a test"

#!/bin/bash
echo -n "OK!"
echo "It is a test"

#!/bin/bash
echo -n "O\nK\n!"
echo "It is a test"

posted on 2015-11-16 15:06  休眠火山0112  阅读(368)  评论(0编辑  收藏  举报

导航