title{if - }
if [ $b -gt 0 -o $c -gt 0 -a $a -gt 0 ]; then
echo test
fi
if [ $b -gt 0 ] || [ $c -gt 0 ] && [ $a -gt 0 ]; then
echo test
fi
if [ -f file ]
if [ -d ... ]
if [ -s file ]
if [ -r file ]
if [ -w file ]
if [ -x file ]
if [ int1 -eq int2 ]
if [ int1 -ne int2 ]
if [ int1 -ge int2 ]
if [ int1 -gt int2 ]
if [ int1 -le int2 ]
if [ int1 -lt int2 ]
if [ "$check" == "" ];then
echo ${line}
else
echo 111
fi
if false; then
echo "ni"
echo "ni"
echo "ni"
fi
var=`ps -aef | grep $1 | grep -v sh| grep -v grep| awk '{print $2}'`
if [ !-z "$var"]
then
echo $1 process is not running
else
kill -9 $var
echo $1 process killed forcefully, process id $var.
fi
if ps -p $PID > /dev/null
then
echo "$PID is running"
fi
pids=( $(pgrep -f resque) )
for pid in "${pids[@]}"; do
if [[ $pid != $$ ]]; then
kill "$pid"
fi
done
if [ "$b" = 11 ] || [ "$b" = "22" ];then
echo $a
fi
if [ "$b" = 11 ] && [ "$b" = "22" ];then
echo $b
fi
project="aaaaa"
if [[ ${project} =~ "aaa" ]]; then
cp aaa.txt bbb.txt
fi
if [[ ${project} =~ "ccc" ]]; then
cp aaa.txt ccc.txt
fi
project="aaaaa"
if [[ ${project} =~ "aaa" ]]; then
echo "aaa111"
else
echo "aaa222"
fi
if [[ ${project} =~ "ccc" ]]; then
echo "aaa555"
else
echo "aaa666"
fi