ls.sh

#!/bin/sh
list=`ls`
#echo $ls
for i in $list
do
#echo $i
#echo $i
count=`echo $i | grep -cP ".*html"`
#echo $count;
#echo $?
#exit
if [ $count -gt 0 ]; 
then
echo $i
fi
done
    A+
发布日期:2013年12月08日  所属分类:未分类

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: