揮発性のメモ2

http://d.hatena.ne.jp/iww/

2010-05-18から1日間の記事一覧

ファイルから数字を読んで1足してまた書き戻す

echo $((`cat /tmp/hoge 2>/dev/null`+1)) > /tmp/hogeファイルが無いときは1を書く