2015年1月6日火曜日

shell exprは遅い

---fast version---
#!/bin/bash

COUNT=0

while ((COUNT < 1000)); do
# while [ $COUNT -lt 1000 ]; do

# 何かの処理

COUNT=$(( COUNT + 1 )) # COUNT をインクリメント
done



---slow version---
#!/bin/bash

COUNT=0

while [ $COUNT -lt 1000 ]; do

# 何かの処理

COUNT=`expr $COUNT + 1` # COUNT をインクリメント
done

Excel Shortcut key

http://bizmakoto.jp/bizid/articles/0705/10/news127.html

1日付と時刻
[Crtl]+[;]今日の日付
[Crtl]+[:]現在の時刻

2繰り返し作業
cell操作後, 別のcellを選んで[F4]/ [Ctrl]+[Y]

3上のcellの値をcopy
[Ctrl]+[D]
下(Down)にcopy

4左のcellの値をcopy
[Ctlr]+[R]
“右(Right)にcopy”

5Auto Sumを入力
[Alt]+[Shift]+[-]
計算結果「=」 (shift + -)

6cellをinsert
[Ctrl]+[Shift]+[;]
Ctrl +.
Ctrl -cell削除

7書式設定
[Ctrl]+[1]

8書式を通貨に
[Ctrl]+[Shift]+[4]
Ctrl+$

9書式を%
[Ctrl]+[Shift]+[5]
Ctrl+$