本文共 542 字,大约阅读时间需要 1 分钟。
#!/bin/bash##********************************************************************#Author: QH#QQ: 1625317303#Date: 2019-03-16#FileName: /test.sh#Mail: 1625317303@qq.com#Description: The test script#Copyright (C): 2019 All rights reserved#********************************************************************a=`cat /etc/passwd|head -10|tail -1|cut -d: -f3`b=`cat /etc/passwd|head -20|tail -1|cut -d: -f3`# echo `let ${a}+${b}`let c=a+becho $cunset a b
转载于:https://blog.51cto.com/9019400/2364539