• <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>

            為生存而奔跑

               :: 首頁 :: 聯系 :: 聚合  :: 管理
              271 Posts :: 0 Stories :: 58 Comments :: 0 Trackbacks

            留言簿(5)

            我參與的團隊

            搜索

            •  

            積分與排名

            • 積分 - 330187
            • 排名 - 74

            最新評論

            閱讀排行榜

            評論排行榜

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

            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命令的結果重定向到文件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 閱讀(341) 評論(0)  編輯 收藏 引用 所屬分類: Ubuntu&Linux
            久久久久亚洲精品日久生情| 久久久久亚洲?V成人无码| 无码人妻久久一区二区三区 | 久久午夜无码鲁丝片| 18岁日韩内射颜射午夜久久成人| 漂亮人妻被中出中文字幕久久| 狠狠干狠狠久久| 久久久久久久精品妇女99| 国产成人久久精品二区三区| 国产亚洲精品久久久久秋霞| 国内精品伊人久久久久网站| 91久久婷婷国产综合精品青草| 中文字幕无码av激情不卡久久| 国产精品久久久久影院嫩草| 国色天香久久久久久久小说| 久久久这里有精品中文字幕| 日本道色综合久久影院| 国产精品久久亚洲不卡动漫| 久久国产免费直播| 国产精品久久久久久久久久影院| 久久国产精品免费一区二区三区| 久久精品国产亚洲AV无码娇色| 久久综合亚洲鲁鲁五月天| 中文字幕无码久久精品青草| 欧美午夜A∨大片久久| 久久青青草原精品国产不卡| 久久久久久国产精品美女| 久久久久一本毛久久久| 精品国产91久久久久久久a| 久久国产成人精品麻豆| 久久久久国产精品| 久久久青草青青亚洲国产免观| 俺来也俺去啦久久综合网| 国产91久久精品一区二区| A狠狠久久蜜臀婷色中文网| www性久久久com| 91精品国产91久久久久久蜜臀| 国产精品美女久久久久av爽| 久久人妻少妇嫩草AV蜜桃| 久久久久久亚洲精品影院| 99蜜桃臀久久久欧美精品网站|