#!/bin/sh
echo "Input date with format yyyy mm dd:\c"
read year month day
echo "Today is $year/$month/$day, right"
echo "press enter to confirm and continue\c"
read a
echo "I know the date, bye"
注释:
#!/bin/sh 指定解析shell的类型,sh为传统shell,bash为默认使用的shell
\c这个转义字符表示,不换行,只能使用与sh类型的shell
阅读(971) | 评论(0) | 转发(1) |