- 博客(9)
- 收藏
- 关注
原创 bash 条件表达式
if [ ! -e /system/app/test.apk ];thenelseif Conditional Constructs http://www.gnu.org/software/bash/manual/bashref.html#Conditional-Constructs Bash Conditional Expressions http://www.gnu.or
2014-01-19 21:37:57 766
原创 Appending Redirected Output
e.g. cat test.sh >> log.log cat test2.sh >> log.log 则test.sh和test2.sh的内容合并到log.log中 Redirection of output in this fashion causes the file whose name results from the expansion of word
2014-01-19 21:21:34 619
原创 bash并行执行
#!/bin/bash for ((i=0;i<5;i++));do { sleep 3; echo "done!" } done wait 上面这段bash脚本执行一次要耗时3x5=15秒钟 。 但下面这段bash脚本执行完却仅耗时3秒钟 #!/bin/bash for ((i=0;i<5;i++));
2014-01-19 21:01:09 2089
原创 Linux scp 远程拷贝
Linux scp 使用详解 scp -r local_folder remote_username@remote_ip:remote_folder scp -r remote_username@remote_ip:remote_folder local_folder
2014-01-15 22:40:12 580
原创 android用eclipse导入时容易产生bin目录
android用eclipse导入时容易产生bin目录,此时编译时提示如下错误信息: Checking build tools versions... build/core/java.mk:9: *** bin: Target java module does not define any source or resource files. Stop. 解决方法是删除该bin目
2014-01-05 23:16:47 1012
原创 设置临时环境变量路径
只在当前终端命令行有效,退出当前终端命令行则失去效力,重新打开一个终端命令行则是整个系统的环境变量路径。 export PATH= 清掉路径 $PATH 确认当前路径空 export PATH=XXX 重新设置路径
2014-01-05 22:33:31 1333
原创 apt-get -f install 和 apt-get update
$sudo apt-get install rpm Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The followin
2014-01-05 15:34:58 2486
原创 gcc version is very high
when compile android 4.0 , when gcc version 4.6.3 is very high, it will show error message below, It must use gcc version 4.4 . -------------------------------------------------------------------
2014-01-03 00:06:26 1393
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人