Showing posts with label tips. Show all posts
Showing posts with label tips. Show all posts
Wednesday, January 12, 2011
count from file output
cat file | cut -f 1 | awk '{tot=tot+$1} END {print tot}'
Thursday, March 26, 2009
Delete large number of file by 'find and rm'
find ./ -iname 'test-file-*' | xargs rm -rf
rm 有最大刪除檔案的限制,大概是 2 萬個,若超過會出現錯誤訊息。
The maximum file limitation of deletion one time about 20 thousand.
引用:使用 find 搭配 rm 刪除大量檔案
rm 有最大刪除檔案的限制,大概是 2 萬個,若超過會出現錯誤訊息。
The maximum file limitation of deletion one time about 20 thousand.
引用:使用 find 搭配 rm 刪除大量檔案
Wednesday, January 21, 2009
The ultra fast way to find a code location
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.
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.
Wednesday, November 5, 2008
Disable system beep~~
1. vi ~/.inputrc
2. vi ~/.vimrc
3. vi ~/.bashrc
set bell-style none2. vi ~/.vimrc
set vb 3. vi ~/.bashrc
alias less='less -Q'Reference:
關閉惱人的嗶嗶聲
Subscribe to:
Posts (Atom)