• <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国产精品久久久| 亚洲一区中文字幕久久| 伊人久久精品影院| 久久综合综合久久97色| 久久精品人人做人人妻人人玩 | 久久婷婷五月综合色奶水99啪| 国产精品xxxx国产喷水亚洲国产精品无码久久一区 | 久久久久亚洲AV无码网站| 欧美精品一本久久男人的天堂| 久久久国产精华液| 久久精品国产精品亚洲| 2020久久精品亚洲热综合一本| 久久久久人妻一区精品色 | .精品久久久麻豆国产精品| 精品人妻伦一二三区久久| 久久青草国产精品一区| 亚洲精品乱码久久久久久不卡| 77777亚洲午夜久久多喷| 久久青青色综合| 国内高清久久久久久| 成人久久免费网站| 久久亚洲国产精品123区| 久久这里只有精品视频99| 久久99热只有频精品8| 久久香蕉国产线看观看乱码| 伊人久久大香线蕉亚洲五月天| 久久国产精品视频| 国产午夜免费高清久久影院| 亚洲精品视频久久久| 亚洲人成电影网站久久| 久久强奷乱码老熟女网站| 久久人人爽人人精品视频| 精品无码久久久久久国产| 国内精品伊人久久久久影院对白| 久久91精品久久91综合| 成人久久精品一区二区三区| 久久精品欧美日韩精品| av无码久久久久不卡免费网站| 久久精品人成免费| 99久久精品免费看国产一区二区三区 |