🚚 moving files

This commit is contained in:
Zhang Peng 2019-02-22 19:24:00 +08:00
parent b909ea3308
commit f99551579e
23 changed files with 7 additions and 6 deletions

View File

@ -1,4 +0,0 @@
# OS `codes/bash`
> 本目录的代码是和 `docs/shell.md` 相关的示例代码。
>

View File

@ -0,0 +1,3 @@
# Shell 示例源码
> 本目录的代码是和 `https://github.com/dunwu/os-tutorial/blob/master/docs/linux/scripts/shell.md` 相关的示例代码。

View File

@ -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