find -size [-+]xxx[bck]
+xxx それより大きいファイル
-xxx それより小さいファイル
c バイト?
b ブロック
k キロバイト
2010年4月30日金曜日
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日金曜日
2010年4月22日木曜日
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
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
一秒ずつカウントダウン
(" "(スペース)は桁が変わると前の文字が残るので)
例
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
一秒ずつカウントダウン
(" "(スペース)は桁が変わると前の文字が残るので)
2010年4月21日水曜日
2010年4月19日月曜日
2010年4月14日水曜日
2010年4月10日土曜日
2010年4月2日金曜日
登録:
投稿 (Atom)