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

            我參與的團隊

            搜索

            •  

            積分與排名

            • 積分 - 330225
            • 排名 - 74

            最新評論

            閱讀排行榜

            評論排行榜

            1. Write a shell script only to list the hidden items of a designated directory. The designated directory must be acquired as a command parameter. If the parameter is not a directory, print a warning message.


            2. Write a shell script to remove all the empty .txt files in your current directory and print the number of removed files.


            3. There is a famous game which is "counting seven". Now we use shell script to implement the game. Print the numbers from 1 to 1000, omitting the number which has 7 in it or is a multiple of 7.


            1.
            ERROR
            =1
            if [ -"$1" --"$1" ];then
                    ls 
            -a $1|grep '^\.[^.]'
            else
                    echo 
            "error: you didn't specify a directory or the parameter is not a directory"
                    exit $ERROR
            fi

            2.
            for filename in `ls -l|awk '$5==0&&$9~/txt$/{print $9}'`
            do
                     rm 
            -f $filename && {
                            echo 
            "file $filename is removed"
                            count
            =$((count+1))
                    }
            done 
            && echo "$count files are removed alltogether!"


            for((i=1;i<=1000;i++))
            do
                    mod
            =` expr $i \% 7 `
                    
            if [ $mod -ne 0 ];then
                            [ `echo 
            "$i" | grep -"7"` ] && echo "$i"
                    fi
            done

            posted on 2010-05-18 14:59 baby-fly 閱讀(154) 評論(0)  編輯 收藏 引用 所屬分類: Ubuntu&Linux
            熟妇人妻久久中文字幕| 精品无码人妻久久久久久| 伊人久久大香线蕉av一区| 精品久久久久久久久午夜福利| AA级片免费看视频久久| 麻豆精品久久久久久久99蜜桃| 久久精品成人免费网站| 伊人久久大香线蕉AV一区二区| 精品一区二区久久久久久久网站| 久久亚洲高清综合| 久久精品国产久精国产| 久久丫忘忧草产品| 久久青青草原亚洲av无码| 欧美日韩中文字幕久久伊人| 7777久久久国产精品消防器材| 久久精品这里只有精99品| 久久99精品久久久久久久久久| 亚洲精品无码久久不卡| 欧美精品一区二区精品久久| 日韩精品久久久肉伦网站| 免费久久人人爽人人爽av| 伊人久久无码精品中文字幕| 品成人欧美大片久久国产欧美| 久久久久人妻精品一区二区三区 | 久久精品免费一区二区| 久久www免费人成精品香蕉| 99久久无码一区人妻| 久久久久免费精品国产| 久久精品国产影库免费看| 国产精品久久99| 精品久久久久久综合日本| 精品国产福利久久久| 久久99精品久久只有精品| 国产精品久久久久影院嫩草| 国产精品青草久久久久婷婷| 久久99国产精品一区二区| 久久精品国产91久久麻豆自制 | 欧美成a人片免费看久久| 久久精品成人免费观看97| 一级a性色生活片久久无少妇一级婬片免费放| 久久综合狠狠综合久久97色|