致力于Ubuntu中文推广http://forum.ubuntu.com.cn/
http://forum.ubuntu.com.cn/viewtopic.php?t=465244
代码: 全选
path="path1 path2 path3" for p in $path do find $p -name "something" done
find "path1" -name "something" find "path2" -name "something" find "path3" -name "something"
find pathX -name "something"
find /usr /etc /var -iname "a*.log" # 在 /usr /etc /var 下查找以a开头、以.log结尾的文件,并且文件名不区分大小写。
path="$path1 $path2 $path3"