软件测试的核心技能是Shell
发布时间
阅读量:
阅读量
基本判断分析
文件存在性判断方法
判断目录是否存在
命令存在性判断方法
判断模块是否安装
判断jdk是否安装
判断上一个命令是否执行成功
输入
命令行参数传递机制
需对参数中存在空格与不存在空格的两种情形进行综合考量
#!/bin/bash
echo "The zero parameter is $0"
echo "The first parameter is $1"
echo "The second parameter is $2"
echo "The third parameter is $3"
#--------------------------
$ bash scipth.sh 1 2 3
The zero parameter is scipth.sh
The first parameter is 1
The second parameter is 2
The third parameter is 3
$ bash scipth.sh "1 2 3" "11 22 33" '111 222 333'
The zero
全部评论 (0)
还没有任何评论哟~
