摘要:
变量测试语句-test作用:用来测试变量是否相等,是否为空,文件类型等。格式: test 测试条件 或 [] #范围:整数,字符串,文件 1)整数测试: test int1 -eq int2 测试整数是否相等 test int1 -ge int2 测试int1是否>=int2 t... 阅读全文
摘要:
简单的示例Shell程序示例1.#!/bin/bash#This is to show what a shell script looks likeecho "Our first example"echo # This inserts an empty line in output.echo "W... 阅读全文