count from file output

January 12, 2011 at 11:39 am | Posted in ubuntu | Comments Off on count from file output
Tags: ,

cat file | cut -f 1 | awk ‘{tot=tot+$1} END {print tot}’

Delete large number of file by ‘find and rm’

March 26, 2009 at 1:04 am | Posted in android | Leave a comment
Tags: ,

find ./ -iname ‘test-file-*’ | xargs rm -rf

rm 有最大刪除檔案的限制,大概是 2 萬個,若超過會出現錯誤訊息。
The maximum file limitation of deletion one time about 20 thousand.

引用:使用 find 搭配 rm 刪除大量檔案

The ultra fast way to find a code location

January 21, 2009 at 12:47 pm | Posted in android | Leave a comment
Tags:

Just add package:android to a google code search.

If you want to find the class “phonenumberutils”, you can input string like “phonenumberutils package:android”

The search result is http://www.google.com/codesearch?q=phonenumberutils+package:android.

Disable system beep~~

November 5, 2008 at 2:19 pm | Posted in android | Leave a comment
Tags: ,

1. vi ~/.inputrc
set bell-style none
2. vi ~/.vimrc
set vb
3. vi ~/.bashrc
alias less='less -Q'

Reference:
關閉惱人的嗶嗶聲

Create a free website or blog at WordPress.com.
Entries and comments feeds.