shell 命令案例
2014-03-16 23:46
211 查看
从控制台中读取参数,并输出出来
#!/bin/bash
#Programe 切换bash 表明shell脚本的编写目的
# input data to the programe
#History 注明编写时间和编写人 下面是将环境变量添加上去
#2014/3/16 tom
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
read -p "input your first name :" firstname
read -p "input your second name: " secondname
echo "\n your name is : $firstname $secondname\n"
#!/bin/bash
#Programe 切换bash 表明shell脚本的编写目的
# input data to the programe
#History 注明编写时间和编写人 下面是将环境变量添加上去
#2014/3/16 tom
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
read -p "input your first name :" firstname
read -p "input your second name: " secondname
echo "\n your name is : $firstname $secondname\n"
相关文章推荐
- shell案例 - 你最喜欢敲的十大命令 ^ v ^
- 简易登录,批量执行命令,批量copy文件shell脚本【Linux运维之道之脚本案例】 推荐
- 简易登录,批量执行命令,批量copy文件shell脚本【Linux运维之道之脚本案例】
- Shell常用命令与工具(二)
- 文件、目录和用户相关的一些shell命令学习
- shell中grep命令详解
- shell 命令的一些技巧(不断更新)
- 初学shell,为了练习sed,写了个简单的批量修改文件名的脚本,后来执行时发现系统竟然自带有一个rename命令,顺便也记下了
- 重复调用ab命令的shell代码和整理ab结果的java代码
- Shell命令之-文件权限相关
- 【信息采集】IBM AIX系统硬件信息查看命令(shell脚本)
- 实用shell编写案例
- Shell命令
- linux中使用shell命令打开指定文件夹(Nautilus@GNOME)
- paste,两个文件相同行拼接在一起的shell命令
- Shell基础学习:关于Wget命令的使用技巧[zt]
- 【Bash百宝箱】shell内建命令之冒号
- Hbase的shell命令学习
- MySQL数据库mysqldump命令备份异常的一个案例
- Python下调用Linux的Shell命令