1.$1 是你给你写的shell脚本传的第一个参数,$2 是你给你写的shell脚本传的第二个参数
判断
-eq //等于
-ne //不等于
-gt //大于 (greater )
-lt //小于 (less)
-ge //大于等于
-le //小于等于
ulimit -c <core文件上限> 设定core文件的最大值,单位为区块。unlimited 属性为无上限
2.md5sum a1 | cut -d ’ ’ -f1
3
foo=(“the first” “the second”)
for i in “${foo[@]}”; do # Expands to ‘for i in “the first” “the second”; do…’
echo $i # so the loop runs twice
done
#the first
#the second