• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            為生存而奔跑

               :: 首頁 :: 聯(lián)系 :: 聚合  :: 管理
              271 Posts :: 0 Stories :: 58 Comments :: 0 Trackbacks

            留言簿(5)

            我參與的團(tuán)隊(duì)

            搜索

            •  

            積分與排名

            • 積分 - 328872
            • 排名 - 74

            最新評論

            閱讀排行榜

            評論排行榜

            可以在shell腳本中使用管道或者重定向輸出結(jié)果。可以通過在done命令的末尾添加處理命令來實(shí)現(xiàn)

            for file in /home/rich/*
            do
               if [ -d  "$file" ]
                  then
                     echo "$file is a directory"
               elif
                     echo "$file is a file"
               fi
            done > output.txt

            這樣,就把for命令的結(jié)果重定向到文件output.txt中。



            for((i=1;i<=10;i++))
            do
              echo 
            "This is the $[ 10-$i ] loop"
            done 
            | sort
            echo 
            "complete"

            輸出:
            This is the 0 loop
            This is the 1 loop
            This is the 2 loop
            This is the 3 loop
            This is the 4 loop
            This is the 5 loop
            This is the 6 loop
            This is the 7 loop
            This is the 8 loop
            This is the 9 loop
            complete


            posted on 2010-06-05 18:07 baby-fly 閱讀(336) 評論(0)  編輯 收藏 引用 所屬分類: Ubuntu&Linux
            99久久婷婷国产综合亚洲| 久久精品国产亚洲一区二区三区| 久久久久久精品免费看SSS| 久久精品国产亚洲AV无码偷窥| 99久久久国产精品免费无卡顿| 欧美精品一区二区精品久久| 色婷婷噜噜久久国产精品12p| 久久夜色精品国产欧美乱| 久久久久亚洲AV综合波多野结衣 | 欧美777精品久久久久网| 免费无码国产欧美久久18| 精品久久久久久无码中文字幕| 7777久久久国产精品消防器材| 久久久青草青青亚洲国产免观| 久久热这里只有精品在线观看| 国产成人久久久精品二区三区 | 久久婷婷五月综合色99啪ak| 久久99精品国产| 国产A级毛片久久久精品毛片| 狠狠精品久久久无码中文字幕| 久久精品国产99久久无毒不卡| 中文字幕久久久久人妻| 久久天天婷婷五月俺也去| 久久精品无码一区二区app| 97久久精品无码一区二区天美| 一本久久a久久精品vr综合| 无码乱码观看精品久久| 久久精品二区| 色天使久久综合网天天| 亚洲а∨天堂久久精品9966| 久久青青草原精品国产不卡| 久久国产精品一区| 久久人妻少妇嫩草AV无码蜜桃| 国产福利电影一区二区三区久久老子无码午夜伦不 | 亚洲中文久久精品无码ww16| 无码8090精品久久一区| 无码国内精品久久综合88| 亚洲午夜福利精品久久| 久久无码中文字幕东京热| 国产精品久久婷婷六月丁香| 亚洲国产精品无码久久久不卡|