标签:$? class ash 脚本 lan lang null bash one
#!/bin/bash
find / -perm -4000 -perm -2000 > /tmp/setuid.check
for i in $(cat /tmp/setuid.check)
do
grep $i /root/suid.log > /dev/null
if ["$?" != "0"]
then
echo "$! isn‘t in listfile!" >> /root//root/suid_log_$(date +%F)
fi
done
rm -rf /tmp/setuid.check
标签:$? class ash 脚本 lan lang null bash one
原文地址:https://www.cnblogs.com/Beavan/p/12598727.html