🚚 moving files
parent
b909ea3308
commit
f99551579e
|
@ -1,4 +0,0 @@
|
|||
# OS `codes/bash`
|
||||
|
||||
> 本目录的代码是和 `docs/shell.md` 相关的示例代码。
|
||||
>
|
|
@ -0,0 +1,3 @@
|
|||
# Shell 示例源码
|
||||
|
||||
> 本目录的代码是和 `https://github.com/dunwu/os-tutorial/blob/master/docs/linux/scripts/shell.md` 相关的示例代码。
|
|
@ -10,8 +10,10 @@ if [[ -z $2 ]]; then
|
|||
exit
|
||||
fi
|
||||
|
||||
if [[ $1 == $2 ]]; then
|
||||
echo "\$1 == \$2";
|
||||
if [[ $1 > $2 ]]; then
|
||||
echo "\$1 > \$2";
|
||||
elif [[ $1 < $2 ]]; then
|
||||
echo "\$1 < \$2";
|
||||
else
|
||||
echo "\$1 != \$2";
|
||||
fi
|
Loading…
Reference in New Issue