抽水马桶会隔断时间叫一下,怎么回事?# Living
d*w
1 楼
这也是之前我遇到的面试题,给大家做个例子
function list_files()
{
for file in `ls /tmp/*.txt`
do
grep "[[:digit:]]\{10\}" $file >/dev/null
OUT=$?
if [ $OUT -eq 0 ];then
echo $file
fi
done
}
function list_files()
{
for file in `ls /tmp/*.txt`
do
grep "[[:digit:]]\{10\}" $file >/dev/null
OUT=$?
if [ $OUT -eq 0 ];then
echo $file
fi
done
}