• <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
            伊人久久免费视频| 久久丫忘忧草产品| 久久综合综合久久97色| 99久久精品免费观看国产| 无码任你躁久久久久久久| 亚洲中文字幕无码久久2020| 人妻丰满AV无码久久不卡| 久久免费线看线看| 综合久久精品色| 欧美日韩中文字幕久久伊人| 久久久精品波多野结衣| 久久综合给久久狠狠97色 | 国内精品九九久久精品| 国产美女久久精品香蕉69| 久久电影网| 精品午夜久久福利大片| 亚洲精品无码久久久| 国产精品久久永久免费| 久久WWW免费人成一看片| 激情五月综合综合久久69| 久久人人爽人人爽人人AV| 日本欧美国产精品第一页久久| 久久精品天天中文字幕人妻 | 无码国内精品久久人妻麻豆按摩| 久久精品国产亚洲av麻豆色欲 | 狠色狠色狠狠色综合久久| 久久天天躁狠狠躁夜夜不卡| 久久久精品人妻无码专区不卡 | 国产精品久久久久…| 97精品国产97久久久久久免费| 久久高清一级毛片| 岛国搬运www久久| 99久久国产综合精品五月天喷水 | 理论片午午伦夜理片久久| 欧美精品一区二区精品久久 | 欧美精品乱码99久久蜜桃| 精品久久久久久久久中文字幕| 区亚洲欧美一级久久精品亚洲精品成人网久久久久 | 久久精品国产亚洲精品2020 | 超级97碰碰碰碰久久久久最新| 久久国产成人精品国产成人亚洲|