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

            我參與的團隊

            搜索

            •  

            積分與排名

            • 積分 - 326969
            • 排名 - 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 閱讀(148) 評論(0)  編輯 收藏 引用 所屬分類: Ubuntu&Linux
            久久夜色精品国产噜噜亚洲AV| 精品久久久久久久久免费影院| 国产成人久久激情91| 日本一区精品久久久久影院| 91精品国产综合久久香蕉 | 91精品国产91久久| 无码人妻久久一区二区三区蜜桃| 亚洲精品乱码久久久久久蜜桃图片 | 亚洲国产另类久久久精品小说| 精品一区二区久久| 99久久香蕉国产线看观香| 亚洲精品高清国产一久久| 久久亚洲AV无码精品色午夜| 精品久久香蕉国产线看观看亚洲 | 亚洲国产精品久久久久久| 一本久久精品一区二区| 久久精品国产半推半就| 久久人人爽人人爽人人片AV高清| 久久线看观看精品香蕉国产| 亚洲欧洲日产国码无码久久99 | 欧美黑人激情性久久| 久久国产高清一区二区三区| 久久精品国产亚洲AV麻豆网站| 久久久久久国产精品无码下载| 久久精品人人做人人爽电影| AV无码久久久久不卡蜜桃| 伊人久久成人成综合网222| 精品国产热久久久福利| 日本三级久久网| 久久青草国产精品一区| 久久久久无码精品国产不卡| 欧美精品九九99久久在观看| 久久九色综合九色99伊人| 国产精品无码久久久久| 亚洲国产精品久久| 国产精自产拍久久久久久蜜| 狠狠色综合网站久久久久久久 | 人人狠狠综合久久亚洲88| 久久精品国产只有精品2020| 77777亚洲午夜久久多喷| 国产精品久久久久久搜索|