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

            我參與的團隊

            搜索

            •  

            積分與排名

            • 積分 - 328871
            • 排名 - 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 閱讀(152) 評論(0)  編輯 收藏 引用 所屬分類: Ubuntu&Linux
            欧美麻豆久久久久久中文| 精品久久久久久无码中文野结衣| 精品99久久aaa一级毛片| 丰满少妇人妻久久久久久4| 国产A级毛片久久久精品毛片| 精品久久久久久国产免费了| 午夜精品久久久久9999高清| 久久精品麻豆日日躁夜夜躁| 99久久国产宗和精品1上映| 99久久精品国内| 久久久久人妻精品一区二区三区| segui久久国产精品| 香蕉久久久久久狠狠色| 一本大道久久香蕉成人网| 久久久这里有精品中文字幕| 久久精品国产亚洲Aⅴ香蕉| 国产三级精品久久| 久久精品人人做人人妻人人玩 | 国产毛片久久久久久国产毛片| 伊人色综合久久天天人守人婷 | 国产精品xxxx国产喷水亚洲国产精品无码久久一区 | 综合久久国产九一剧情麻豆| 久久人人爽人人澡人人高潮AV | 国产产无码乱码精品久久鸭| 无码人妻少妇久久中文字幕蜜桃 | 久久精品一区二区三区不卡| 久久国产高清字幕中文| 94久久国产乱子伦精品免费 | 亚洲va中文字幕无码久久| 日本久久中文字幕| 久久精品国产黑森林| 亚洲国产成人久久综合一| 91久久精品91久久性色| 精品久久久久久亚洲精品 | 久久久久久国产精品美女| 国产精品美女久久久久AV福利| 国产精品久久永久免费| 国产精品久久国产精麻豆99网站| 影音先锋女人AV鲁色资源网久久| 亚洲va中文字幕无码久久不卡| 午夜精品久久久久久99热|