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

            我參與的團隊

            搜索

            •  

            積分與排名

            • 積分 - 328415
            • 排名 - 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
            99久久亚洲综合精品成人| 伊人久久大香线蕉av一区| 91精品国产色综久久| 久久夜色撩人精品国产小说| 国内精品伊人久久久影院| 色欲久久久天天天综合网精品| 久久不见久久见免费视频7| 久久久精品免费国产四虎| 色综合久久天天综线观看| 久久久精品人妻一区二区三区蜜桃 | www.久久99| 三级片免费观看久久| 99国产精品久久| 2021久久精品免费观看| 久久精品国产秦先生| 7777精品久久久大香线蕉 | 国产综合成人久久大片91| 综合久久国产九一剧情麻豆| 国产综合成人久久大片91| 99久久久精品免费观看国产| 手机看片久久高清国产日韩| 香蕉久久一区二区不卡无毒影院| 久久中文字幕人妻丝袜| 久久久久亚洲精品无码网址 | 狠狠综合久久AV一区二区三区 | 久久亚洲综合色一区二区三区| 亚洲国产日韩欧美综合久久| 久久99国产精品二区不卡| 亚洲欧美成人综合久久久| 欧美日韩成人精品久久久免费看| 欧美亚洲另类久久综合| 精品熟女少妇av免费久久| 色综合久久中文字幕无码| 久久九九兔免费精品6| 国产69精品久久久久观看软件 | 国产99精品久久| 国产精品久久久久久福利69堂| 精品久久久久久无码专区不卡 | 亚洲精品乱码久久久久久自慰| 久久久亚洲裙底偷窥综合| 久久精品国产久精国产果冻传媒|