摘要:
#!/bin/bash if [ -f str.txt ] ## 如果str.txt存在,则返回true then strval=$(cat str.txt|awk '{printf "%s",$1}'|sed 's/ //g') ## 使用awk去除换行,使用sed去除空格 if [ "" == "$strval" ] ## 判断文件是否为空 then e... 阅读全文
posted @ 2016-06-26 23:32
大坑水滴
阅读(8487)
评论(0)
推荐(0)

浙公网安备 33010602011771号