shell遍历目录
这是一个很棒的方法 [code lang="bash"] #!/bin/sh # 定义一个方法 foreachd(){ # 遍历参数1 for file in $1/* do # 如果是目录就打
...Read more...
数人世相逢,百年欢笑.
这是一个很棒的方法 [code lang="bash"] #!/bin/sh # 定义一个方法 foreachd(){ # 遍历参数1 for file in $1/* do # 如果是目录就打
...Read more...
#!/bin/sh # 定义一个方法 foreachd(){ # 遍历参数1 for file in $1/* do # 如果是目录就打印处理,然后继续遍历,递归调用 if [ -d $file
...Read more...