读入键盘变量的Shell脚本示例
来源:互联网 发布:人工智能的原理及应用 编辑:程序博客网 时间:2024/06/11 21:16
#! /bin/sh
set -x
log="dbsvr.log"
> $log
if [ $# -eq 0 ]
then
printf "sa password:"
stty -echo
read saPassword
stty echo
echo
else
saPassword="$1"
fi
echo ${saPassword}
set +x
set -x
log="dbsvr.log"
> $log
if [ $# -eq 0 ]
then
printf "sa password:"
stty -echo
read saPassword
stty echo
echo
else
saPassword="$1"
fi
echo ${saPassword}
set +x
- 读入键盘变量的Shell脚本示例
- shell脚本程序中的部分常用环境变量和参数变量的说明以及简单shell脚本示例
- shell脚本常用的变量
- shell脚本里的变量
- shell脚本的特殊变量
- 【Shell脚本学习6】Shell变量:Shell变量的定义、删除变量、只读变量、变量类型
- 3.15 变量的读入
- 变量的读入
- 对“键盘读入”的处理
- shell脚本中简单的函数示例
- 复制命令的Shell脚本编写示例
- Shell基础教程,什么是Shell?Shell脚本的执行方式,Shell中的变量,Shell中的特殊变量
- shell脚本示例
- shell 脚本 示例
- Linux shell 脚本示例
- shell脚本简单示例
- shell脚本结构示例
- Shell脚本大量示例
- 数据结构、算法面试系列【1】
- CoCos2D-X-2.1.5中使用Cygwin创建新项目,并在Eclipse中编译通过
- MapReduce中InputFormat和InputSplit解读
- 获取页面高度和可见高度
- s标签 在页面上对Double进行没有小数点操作
- 读入键盘变量的Shell脚本示例
- 从一个程序学习一点try-finally-return
- VS2008中添加程序启动画面 splash screen
- WPF的动画实现方式
- JavaScript日期时间与时间戳的转换
- SQL Formatter
- 在SuSE下面修改系统语言环境变量
- 点击图片中不规则图形提示选中不同区域
- poj 1163 The Triangle【dp】