原创 Bash Commands - chmod # Invoking script
1. Invoke Having written the script, you can invoke it by bash scriptname. Much more convenient is to make the script
原创 Bash Commands - $? for testing the result of a command
$? is especially useful for testing the result of a command in a script . #!/bin/bash echo hello
原创 Bash Commands - $ # Variable Substitution
$ Let us carefully distinguish between the name of a variable and its value. If variable1 is the name of a variable, t
原创 Bash Commands - Arithmetic Tests using (( ... ))
The (( )) construct expands and evaluates an arithmetic expression. If the expression evaluates as zero, it returns an
原创 Bash Commands - # Integer or string?
#!/bin/bash # int-or-string.sha=2334 let "a += 1" echo "a = $a " echo b
原创 ubuntu12.04安裝flash player插件
64位的和32位的安裝方式不一樣。 解壓後的那個usr目錄沒用,刪了,只需libflashplayer.so那個文件。 1.首先確認你下載的是64位的(32位理論上也行,但64位對你的系統來說更佳)flash插件。 2.查看一下/usr/
原创 Develop necessary knowledge of Android system
http://wenku.baidu.com/view/85ab97d333d4b14e85246821.html cscope是神馬 http://www.cnblogs.com/mrray/archive/2011/01/18
原创 Bash Commands - Special Charactors # ? $
1. ? Test operator. condition?result-if-true:result-if-false $ (( var0 = var1<98?9:21 ))# # # if [ "$var1" -lt 98 ] #
原创 Bash Commands - Create a script with multi-parameter
#!/bin/bash # Call this script with at least 10 parameters, for example # ./scriptname 1 2 3 4 5 6 7 8 9 10MINPARAMS=10
原创 Bash Commands - Using the [[ ... ]] rather than [ ... ] can prevent many logic errors in scripts.
#!/bin/bash decimal=15 octal=017 hex=0x0fif [ "$decimal" -eq "$octal" ] then echo "$decimal equals $octal" else echo
原创 Add a New Module
Every component in Android is called a moduleModules are defined across th
原创 Bash Commands - tr cat tac
1. tr character translation filter. 1.1 Either tr "A-Z" "*" <filename or tr A-Z \* <filename changes all the uppercase
原创 Bash Commands - the diff of > and >> # Use I/O Redirection to generate a log file
1. > # Redirect stdout to a file. # Creates the file if not present, otherwise overwrites it. 2. >> # Redirect stdo
原创 Using GNU C __attribute__
http://www.unixwiz.net/techtips/gnu-c-attributes.html
原创 Android source tree structure
http://blog.csdn.net/liukun321/article/details/7278305