SHELL记录
摘要:
判断文件是否存在,导出一些信息到同一个文件中:curdate=`date +%Y%m%d`tmFile_dir="/home/mbis/ptest"tmFile="tm_$curdate.txt"echo $tmFilecd $tmFile_dirif [ -f "$tmFile" ]then touch "$tmFile"fiwhile truedo curtime=`date +%H%M%S` echo time\: $curtime >> $tmFile ps -ef -o "%z %c 阅读全文
posted @ 2014-03-20 16:08
ldqztm
阅读(73)
评论(0)
推荐(0)
浙公网安备 33010602011771号