代码: 全选
[[ 'a' == 'a' ]] && echo xxxx
代码: 全选
[[ 'a' == 'a' ]]
$? && echo xxxx
代码: 全选
if ! grep -q xxx filename; then
echo >> xxx filename
fi