if [ "$(ls -A tmp)" ];thenecho tmp is not emptyelsetmp is emptyfi# or[ "$(ls -A tmp)" ] && echo "Not Empty" || echo "Empty"
if [ "$(ls -A tmp)" ];thenecho tmp is not emptyelsetmp is emptyfi# or[ "$(ls -A tmp)" ] && echo "Not Empty" || echo "Empty"
让时间为你证明