- 博客(8)
- 资源 (4)
- 收藏
- 关注
原创 grep
grep "$1" -rn ./ --exclude-dir=.git --exclude-dir=.repo --color=auto
2013-04-16 18:05:51 730
原创 vim 空格和换行的删除和替换
%s/\s//g%s/\r//g%s/\n//g把一个很长的一行按空格分为多行:%s/ +/\r/g简单解释一下:%s :在整个文件范围查找替换/ :分隔符+ :匹配空格,其中“ ”表示空格,+表示重复1次或多次,加在一起表示一个或多个空格。/r :换行符/g :全局替换删除文章中的空行:g
2013-04-16 14:52:59 83420 1
原创 些脚本的时,注意事项
1.首先要source ~/.bashrc2.注意环境变量#!/bin/bashsource /home/mazi/.bashrcPath="/home/mazi/source/$1/F3"repoPath="/home/mazi/bin/repo"cd "$Path"$repoPath forall -c 'git checkout -f;git clean -fd'$r
2013-04-15 17:45:25 830
转载 debug_log
/* adb debug_log */static int proximity_cdc_dbg_func_log = 0; /* log : Init = OFF */static int proximity_cdc_dbg_func_fin_log = 0; /* log : Init = OFF */static int proximity_cdc_dbg_de
2013-04-10 16:38:31 2836
原创 pirntf 和路径转换问题.遗留
printf("%d, %d\n", a, b);C/C++都一致的,即都是先运算b,b入栈(存储进缓冲区),运算a,a入栈(存储进缓冲区) 输出(显示)时,a先出栈(a缓冲区被刷新),b出栈(b缓冲区被刷新)#include #include int main(int argc, const char *argv[]){ /* *char p[] = "a/b/c/d";
2013-04-07 18:30:52 845
转载 android之init进程-uevent
Init是linux kernel启动的第一个进程,理解init,对熟悉android系统非常重要。 Android的每个目录下面都有一个非常重要的文件Android.mk,负责编译该目录下面的代码。 System/core/init/android.mk[cpp] view plaincopy LOCAL_FOR
2013-04-01 15:35:25 666
转载 Linux命令basename,dirname
此函数是获得directory中的basename, 比如basename(“android/system/core"),返回的是"core" 37 basename(const char* path) 38 { 39 static char* bname = NULL; 40 int ret; 41 42
2013-04-01 15:23:41 867
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人