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

            我參與的團隊

            搜索

            •  

            積分與排名

            • 積分 - 328479
            • 排名 - 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
            久久人人爽人人爽人人爽| 久久精品国产亚洲AV无码娇色| 久久久久久国产精品无码超碰| 亚洲国产日韩欧美综合久久| 午夜精品久久久久9999高清| 伊人久久五月天| 精品久久无码中文字幕| 久久99精品九九九久久婷婷| 色综合久久88色综合天天 | 亚洲欧美伊人久久综合一区二区| 2021少妇久久久久久久久久| 少妇被又大又粗又爽毛片久久黑人 | 久久久久高潮毛片免费全部播放 | 久久国产精品免费一区| 国产精品毛片久久久久久久| 久久婷婷色综合一区二区| 久久福利片| 久久99国产乱子伦精品免费| 久久精品国产WWW456C0M| 久久久久久国产精品无码超碰 | 91久久精品电影| 午夜精品久久久久久毛片| 久久se精品一区二区影院| 久久精品亚洲一区二区三区浴池 | 色综合色天天久久婷婷基地| 亚洲国产精品成人久久| 色99久久久久高潮综合影院| 日本久久久久久中文字幕| 老色鬼久久亚洲AV综合| 97久久国产综合精品女不卡| 久久久久久国产精品美女| 亚洲国产成人久久精品动漫| 精品免费tv久久久久久久| 久久久久亚洲av无码专区导航| 久久精品视频一| 2021国产精品久久精品| 久久久亚洲AV波多野结衣| 一本色道久久综合| 久久人人爽人人爽人人片AV不 | 欧美久久精品一级c片片| 久久人人爽人人爽人人AV东京热|