语句来自如下脚本:
用Shell脚本来遍历文件夹里的所有文件
#!/bin/bash
function ergodic(){
for file in ` ls $1 `
do
if [ -d $1"/"$file ]
then
ergodic $1"/"$file
else
echo $1"/"$file >> b
fi
done
}
INIT_PATH="/etc/httpd"
ergodic $INIT_PATH