摘要: #!/bin/bash # [ $# lt 2 ] && echo "At least two files" && exit 1 --(错误退出) $#是脚本参数语句 判断输入的参数如果小于2个则继续后面的命令 file1_lines=$(grep "^$" $1 | wc -l) file2_lines=$(grep "^$" $2 | wc -l) 匹配输入对应地址变量$1\$2... 阅读全文
posted @ 2018-05-28 11:29 bin_WSJ 阅读(172) 评论(0) 推荐(0) 编辑