• <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
            国内高清久久久久久| 99re这里只有精品热久久| 色天使久久综合网天天| 久久久久久久97| 久久香蕉国产线看观看99| 久久久久久久综合日本| 久久99精品久久久久久hb无码 | 久久精品视屏| 久久超乳爆乳中文字幕| 久久久久久A亚洲欧洲AV冫 | 精品久久久久久无码人妻热| 亚洲中文字幕久久精品无码APP| 成人a毛片久久免费播放| 亚洲AV日韩AV天堂久久| 日产精品久久久久久久| 精品久久人人爽天天玩人人妻| 高清免费久久午夜精品| 色综合久久综合中文综合网| 久久精品综合一区二区三区| 久久精品国产一区二区三区日韩| 国产69精品久久久久久人妻精品| 无码精品久久一区二区三区| 91精品久久久久久无码| 国产精品视频久久久| 久久无码人妻一区二区三区午夜 | 久久精品中文字幕一区| 国产无套内射久久久国产| 久久亚洲高清观看| 久久精品国产秦先生| 国产精品久久久久久久久免费| 国内精品久久久久久99蜜桃| 亚洲人成精品久久久久| 色狠狠久久AV五月综合| 久久久亚洲欧洲日产国码二区 | 精品久久久无码21p发布| 久久久久亚洲AV成人网人人网站| 性做久久久久久久久| 无码国内精品久久综合88| 久久亚洲AV成人无码软件| 亚洲va久久久噜噜噜久久| 久久精品国产亚洲AV无码娇色|