shell if用法
摘要:1 #!/bin/sh 2 echo "Is it morning? please answer me" 3 read timeofday 4 5 if [ $timeofday="yes" ]; if与 [] 之间必须有空格 6 then 7 echo "good morning" 8 ...
阅读全文
posted @
2017-03-06 14:43
龙城狂拽酷炫霸
阅读(168)
推荐(0)
linux程序设计第四版 记录
摘要:ps > test.txt 把进程信息结果写入test.txt 重复调用则会覆盖 ps >>test.txt 重复调用不会覆盖,写入文件末尾
阅读全文
posted @
2017-03-03 12:59
龙城狂拽酷炫霸
阅读(117)
推荐(0)