一个简单 的Shell 显示程序
时间:2014-05-03 21:05:20
收藏:0
阅读:283
#!/bin/bash clear declare FirstName Greeting Greeting="Hello ," echo "" echo "Enter Your First Name:" read FirstName echo "$Greeting $FirstName"
首先 vim Print 回车
然后 i 进入插入状态
编辑以上代码,Esc 键回车
输入 chmod 711 Print 生成 可执行文件
再输入 ./Print 回车
就执行了程序 输出如下:
Enter Your First Name: 今天是2014年五月3日, Hello , 今天是2014年五月3日
评论(0)