OpenWrt_Luci_Lua/1_3.test_code/sh_test/sh_strcmp.sh

14 lines
169 B
Bash
Raw Permalink Normal View History

2015-08-30 08:36:32 +00:00
#!/bin/bash
#以下代码中(())可替换为[]
a="up"
if(($a=="down")); then
echo "if"
elif(($a=="up")); then
echo "else"
else
echo "helo"
echo $a
fi