mirror of
https://github.com/dunwu/linux-tutorial.git
synced 2024-04-15 19:55:24 +08:00
🚚 moving files
This commit is contained in:
parent
b909ea3308
commit
f99551579e
@ -1,4 +0,0 @@
|
|||||||
# OS `codes/bash`
|
|
||||||
|
|
||||||
> 本目录的代码是和 `docs/shell.md` 相关的示例代码。
|
|
||||||
>
|
|
3
codes/linux/shell-demos/README.md
Normal file
3
codes/linux/shell-demos/README.md
Normal file
@ -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
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $1 == $2 ]]; then
|
if [[ $1 > $2 ]]; then
|
||||||
echo "\$1 == \$2";
|
echo "\$1 > \$2";
|
||||||
|
elif [[ $1 < $2 ]]; then
|
||||||
|
echo "\$1 < \$2";
|
||||||
else
|
else
|
||||||
echo "\$1 != \$2";
|
echo "\$1 != \$2";
|
||||||
fi
|
fi
|
Loading…
Reference in New Issue
Block a user