shell相关的用法if用法-q不输出结果,只做判断[root@rs1tmp]#ifgrep-q‘^daixuan:‘/etc/passwd;thenecho"daixuantext";fi,当/etcpasswd下包含daixuan,就输出daixuantestcase用法[root@rs1tmp]#vimcase.sh#/bin/bash
read-p"Pleaseinputanumber:"n
m=$[$n%2]
echo$m
case$min
1..
分类:
系统相关 时间:
2016-01-28 11:05:15
阅读次数:
224