Shell Scripting Cookbook1

来源:互联网 发布:知廉耻 编辑:程序博客网 时间:2024/06/05 09:53
who | wc -wclwc -l nusersecho "welcome to Bash"echo welecho 'asd'echo 'asd!'printf "Hello World"printf "Hello World\n"echo -e "1\t2\t3"    output    1    2   3echo"1\t2\t3"        output     1\t2\t3echo -e "\e[1;31m this is red txt \e[0m"echo -e "\e[1;32m this is red txt"echo -e "\e[1;43m Yellow Background \e[0m"toppspgrep geditpgrep initcat /proc/5925/environcat /proc/12501/environ | tr '\0' '\n'hp@ubuntu:~/shel$ echo "h!"bash: !": event not found