The Shell if esle [if []; then fi small details]

Brackets ([]) and include a space, as shown:
Here Insert Picture Description

#!/bin/bash
colnum=19
if [ $colnum==19 ];then
        echo " colnum == 19"
fi

Published 142 original articles · won praise 44 · views 60000 +

Guess you like

Origin blog.csdn.net/weixin_40916641/article/details/103345140