1.命令行結果作為變數賦值給一個變數後再用while操作變數ls -l /www/apache/logs/aaa/ | grep gz$| awk {print $9,$5}| while read aaa; do echo $aaa|aw
blog.itpub.net