2017年7月6日
摘要: 下面是代码:注意: 1、if [ expression ],表达式两边需要空格 2、a=$[aa],字符串转为int类型 3、赋值的时候不能有空格 阅读全文
posted @ 2017-07-06 17:26 细雨微光 阅读(850) 评论(0) 推荐(0)
摘要: #!/bin/bash function getdir(){ for element in `ls $1` do dir_or_file=$1"/"$element if [ -d $dir_or_file ] then getdir $dir_or_file else ... 阅读全文
posted @ 2017-07-06 15:25 细雨微光 阅读(1110) 评论(0) 推荐(0)