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

            我參與的團隊

            搜索

            •  

            積分與排名

            • 積分 - 326992
            • 排名 - 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
            国产偷久久久精品专区| 亚洲精品午夜国产VA久久成人| 91久久婷婷国产综合精品青草 | 欧美噜噜久久久XXX| 麻豆精品久久久久久久99蜜桃| 亚洲伊人久久综合影院| 亚洲乱码中文字幕久久孕妇黑人| 九九久久99综合一区二区| 久久露脸国产精品| 国产亚洲欧美成人久久片| 久久国产成人午夜AV影院| 久久久久亚洲精品日久生情 | 久久精品国产精品青草| 免费精品久久久久久中文字幕| 无码人妻久久一区二区三区| 精品九九久久国内精品| 国产亚洲美女精品久久久2020| 18岁日韩内射颜射午夜久久成人| 久久久这里有精品| 九九久久精品无码专区| 久久久久亚洲精品天堂| 亚洲国产成人久久综合碰| 国产99久久精品一区二区| 香蕉久久夜色精品国产2020| 久久99精品久久久久久| 久久夜色精品国产噜噜噜亚洲AV| 久久久这里只有精品加勒比| 久久性生大片免费观看性| 青青青青久久精品国产| 久久er国产精品免费观看2| 久久亚洲中文字幕精品有坂深雪 | 国产精自产拍久久久久久蜜| 国产高潮国产高潮久久久| av色综合久久天堂av色综合在| 香蕉久久影院| 亚洲日本va午夜中文字幕久久| 国产精品无码久久久久| 国产精品热久久无码av| 99久久免费只有精品国产| 久久婷婷综合中文字幕| 国产精品熟女福利久久AV|