• <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
            久久本道综合久久伊人| 久久永久免费人妻精品下载| 久久精品国产91久久麻豆自制| 精品久久久久久中文字幕人妻最新| 国产精品视频久久久| 少妇被又大又粗又爽毛片久久黑人| 久久精品国产男包| AAA级久久久精品无码片| 久久精品亚洲男人的天堂| 亚洲AV日韩AV天堂久久| 91亚洲国产成人久久精品网址| 久久久久久亚洲精品影院| 亚洲综合久久综合激情久久| 囯产极品美女高潮无套久久久 | 亚洲AⅤ优女AV综合久久久| 亚洲国产精品无码久久一区二区| 一级做a爱片久久毛片| 天天躁日日躁狠狠久久| 久久综合色之久久综合| 久久99国产精品二区不卡| 精品多毛少妇人妻AV免费久久| 无码人妻少妇久久中文字幕蜜桃 | 一本久久a久久精品综合香蕉| 久久国产免费观看精品3| 一本一本久久aa综合精品| 久久人人超碰精品CAOPOREN| 久久久久中文字幕| 久久伊人精品青青草原高清| 久久精品国产99国产精品亚洲 | 成人国内精品久久久久一区| 久久妇女高潮几次MBA| 久久亚洲AV无码西西人体| 国产精品欧美久久久久天天影视| 97久久国产亚洲精品超碰热 | 久久久久亚洲AV成人网人人网站 | 久久91精品国产91久久户| 国产精品一久久香蕉国产线看观看| 亚洲αv久久久噜噜噜噜噜| 中文字幕热久久久久久久| 久久香蕉国产线看观看精品yw| 国产A级毛片久久久精品毛片|