上善若水
          In general the OO style is to use a lot of little objects with a lot of little methods that give us a lot of plug points for overriding and variation. To do is to be -Nietzsche, To bei is to do -Kant, Do be do be do -Sinatra
          posts - 146,comments - 147,trackbacks - 0
          1. 清空文件
          cat /dev/null > file.name

          2. 實現輸入不提示代碼

          #! /bin/sh

          printf “Enter your password:”

          stty –echo

          read password < /dev/tty

          printf “\nEnter again:”

          read password2 < /dev/tty

          stty echo

          printf “\n”

          echo “password 1 is : $password”

          echo “password 2 is : $password2”

          posted on 2011-12-13 23:12 DLevin 閱讀(451) 評論(0)  編輯  收藏 所屬分類: Linux
          主站蜘蛛池模板: 蒙阴县| 宁乡县| 扶余县| 鄂州市| 禄劝| 石泉县| 山丹县| 肥城市| 福海县| 乌审旗| 南乐县| 石泉县| 长白| 和平区| 晋城| 靖江市| 汝城县| 中方县| 庆云县| 大安市| 永昌县| 尚义县| 囊谦县| 武山县| 郴州市| 遵化市| 本溪市| 吴忠市| 桃园县| 平舆县| 赤城县| 荥经县| 汪清县| 潞西市| 呼伦贝尔市| 巴林左旗| 金乡县| 拉孜县| 克什克腾旗| 合阳县| 任丘市|