shell read 指令作用
来源:互联网 发布:韩顺平mysql优化笔记 编辑:程序博客网 时间:2024/05/22 00:29
read可以读入用户输入到一个变量中,如:
read age
此时用户可以输入,输入完之后,输入的内容被赋值给了age变量,这时我们用echo $age,可以输出当时赋值给age的值。
#!/bin/bash
echo "how old are you?"
read age
if [ $age -gt 60 ]; then
echo "oh you are too old";
else
echo "you are young"
fi
- shell read 指令作用
- shell read指令
- Linux shell read指令学习
- shell read
- 【liunx脚本】read指令
- SHELL指令
- shell 指令
- shell指令
- shell指令
- read -p的作用
- [shell日记]read
- shell中read命令
- linux shell中read
- shell中read参数
- shell中read参数
- 【Shell】read用法
- shell read的用法
- shell编程read
- Android library projects cannot be launched
- 人月神话
- Makefile详解
- Server 2003设置文件共享注意一下3点
- ...
- shell read 指令作用
- 意大利语中的一些常用词汇
- ajax
- SQL Server 海量数据优化
- linux 解压命令大全
- listctrl
- 什么是VLAN
- PHP静态类 Static Class 研究
- STL文档