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

            我參與的團隊

            搜索

            •  

            積分與排名

            • 積分 - 328479
            • 排名 - 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 閱讀(151) 評論(0)  編輯 收藏 引用 所屬分類: Ubuntu&Linux
            香蕉aa三级久久毛片| 久久无码高潮喷水| 亚洲国产精品热久久| 99久久99久久精品国产| 思思久久99热免费精品6| 香蕉久久夜色精品升级完成| 99久久国产热无码精品免费| 久久九九久精品国产| 色狠狠久久AV五月综合| 亚洲狠狠久久综合一区77777| 老司机午夜网站国内精品久久久久久久久 | 26uuu久久五月天| 久久人人爽人人爽人人片av麻烦 | 久久青草国产手机看片福利盒子 | 色99久久久久高潮综合影院| 久久久久国产精品熟女影院 | 奇米影视7777久久精品| 久久国产美女免费观看精品| 人妻无码精品久久亚瑟影视 | 国产亚洲精午夜久久久久久 | 亚洲精品无码久久久| 青青青伊人色综合久久| 国产A级毛片久久久精品毛片| 大美女久久久久久j久久| 99久久婷婷国产综合亚洲| 久久天天躁狠狠躁夜夜2020一| 精品久久久久久无码免费| 99国产精品久久| 99精品久久精品| AAA级久久久精品无码片| 久久精品国产亚洲AV香蕉| 欧美激情精品久久久久久久九九九| 久久香蕉综合色一综合色88| 久久久久成人精品无码中文字幕| 欧美精品一区二区久久 | 久久精品青青草原伊人| 性做久久久久久久久浪潮| 久久电影网| 久久播电影网| 久久综合色老色| 一本色综合网久久|