2010年4月30日金曜日

find - size

find -size [-+]xxx[bck]

+xxx それより大きいファイル
-xxx それより小さいファイル

c バイト?
b ブロック
k キロバイト

2010年4月25日日曜日

bash - while

while [ (bash (script) ] = "判定" ] : ;do for i in $(seq 0 X|sort -n -r);do echo $i|awk '{printf "COUNT %d /r",$0}';sleep 1;done;done

カウントダウン付き

2010年4月23日金曜日

unix - ~(チルダファイル)

*.*~ (チルダファイル)の削除

find . -name '*~' -exec rm {} \;

2010年4月22日木曜日

Visual Basic - Form2

フォームの追加

コードを
Dim f as Form2 = New Form2
f.owner=me
f.show()

で表示

bash - while

bashスクリプトで終了時にechoで判定用の文字をだし

while [ $(bash ./スクリプト) = "判定" ];do (command);done

スクリプトが綺麗に終わるまで終わらせない。


--xxx.sh--
if [ まだ終わらせない ];then
echo "1";exit 0
else
echo "0";exit0
fi
-----------------
while [ $(bash ./xxx.sh) = "1" ];do (command);done

bash - seq

seq FIRST LAST


seq 1 10
seq 1 10|sort -n -r --逆順に表示

遊びで
for i in $(seq 0 10|sort -n -r);do echo $i|awk '{print "%s \r",$0}';sleep 1;done
一秒ずつカウントダウン
(" "(スペース)は桁が変わると前の文字が残るので)

bash - while

コマンドラインから無限ループ

while : ;do (command);done

2010年4月21日水曜日

Visual Basic - ダブルクォーテーション

""""

ダブルクォーテーションを二つつなげると一つの文字(半角)として扱う

2010年4月19日月曜日

wget

--limit-rate=xxxx

ダウンロード速度を指定

bash - sleep

sleep n

指定した秒間、止まる

2010年4月14日水曜日

mount - 文字化け

sudo mount -t iso9660 -o loop -o utf8 [file] [mount position]

2010年4月10日土曜日

adobe air - みくりま

動画プレイヤー

http://ktmk.dtdns.net/mikurima/

add-ons for Firefox

SkipScreen - 待ち時間をスキップ
Flashgot - ダウンロード支援
BugMeNot - ログイン

2010年4月2日金曜日

ubuntu - cournol

経済学に役立つらしい

sudo apt-get install cournol

多分、きっと。自分には必要ないな!