while read line
do
    if [ "$line" != "" ] ; then
        echo $line
    else
        echo "empty line"
    fi
done  <tmp3.txt
Posted on 2007-02-28 10:34  古代  阅读(1026)  评论(0编辑  收藏  举报