运维网's Archiver
论坛
›
Shell/Powershell
› shell build-in
淑昊柠
发表于 2018-8-23 10:29:29
shell build-in
his_date=`date +%Y-%m-%d` his=`history |wc -l`
if [ $his -ge 0 ]; then
history -a
history 1> /opt/log/history/$his_date
history -c
echo "xxx"
fi
页:
[1]
查看完整版本:
shell build-in