会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
首页
新随笔
订阅
管理
上一页
1
···
213
214
215
216
217
218
219
220
221
···
313
下一页
2013年12月25日
awk 传入外部参数
摘要: awk 传入外部参数num1=1.1num2=2.2result=$(awk -v n1=$num1 -v n2=$num2 'BEGIN{print (n2>n1)?1:0}')
阅读全文
posted @ 2013-12-25 11:42 emanlee
阅读(3706)
评论(0)
推荐(0)
2013年12月23日
shell/bash 让vi/vim显示空格,及tab字符
摘要: shell/bash 让vi/vim显示空格,及tab字符Vim 可以用高亮显示空格和TAB。文件中有 TAB 键的时候,你是看不见的。要把它显示出来::set listTAB 键显示为 ^I, $显示在每行的结尾,表示换行;空格仍然显示为空格。:set list 进入List Mode:set n
阅读全文
posted @ 2013-12-23 23:12 emanlee
阅读(28620)
评论(0)
推荐(0)
shell/bash 交集、并集、差集
摘要: 方法一(直接用文件名):取两个文本文件的并集、交集、差集并:sort -m <(sort file1 | uniq) <(sort file2 | uniq) | uniq交:sort -m <(sort file1 | uniq) <(sort file2 | uniq) | uniq -d差 f
阅读全文
posted @ 2013-12-23 22:36 emanlee
阅读(3709)
评论(0)
推荐(0)
2013年12月19日
Windows XP搜索功能 "包含文字" 搜索不到内容的解决办法
摘要: Windows开始菜单 -- 运行 -- regedit -- 确定,编辑注册表HKEY_LOCAL_MACHINE\SYSTEM\ControlSet\Control\ContentIndex右侧FilterFilesWithUnknownExtensions子键(REG_DEWORD类型)的键值改为1。有的系统是HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ContentIndex右侧FilterFilesWithUnknownExtensions子键(REG_DEWORD类型)的键值改为1。如果不存在FilterFilesWith
阅读全文
posted @ 2013-12-19 10:07 emanlee
阅读(6161)
评论(0)
推荐(0)
2013年12月17日
备用帖子1Shell(Shell R语言)
摘要: shell ls -lrt ### list fils by date (sort by date) echo 1 > /proc/sys/vm/drop_caches 清理内存 free -m du -h --max-depth=1 folder awk '$0 ~ ">hsa" { print
阅读全文
posted @ 2013-12-17 12:12 emanlee
阅读(1432)
评论(0)
推荐(0)
2013年12月15日
C语言字符串查找函数
摘要: 1 #include 2 #include 3 4 char * string_search(char long_str[], char short_str[]) 5 {//author: emanlee 6 char *pl, *qs; 7 long is_identical, long_length, short_length; 8 long position, ii; 9 10 long_length=strlen(long_str); 11 short_length=strlen(short_str); 12 ...
阅读全文
posted @ 2013-12-15 11:54 emanlee
阅读(2701)
评论(0)
推荐(0)
2013年12月8日
Linux CentOS 下修改PATH的方法
摘要: Linux下修改PATH的方法 1.直接在命令行里敲 PATH=$PATH:/path1:/path2:/pathN用户登出之后PATH恢复原样. 只是临时起作用。 2.修改~目录下bash_profile, cdvi .bash_profile找到PATH=$PATH:$HOME/bin这一行,直
阅读全文
posted @ 2013-12-08 18:46 emanlee
阅读(757)
评论(0)
推荐(0)
2013年11月26日
bash 统计文件行数
摘要: #假设文件名是:fortest.gtf declare -i fileLines fileLines=`sed -n '$=' fortest.gtf` echo $fileLines # linesCount=0let linesCount=($fileLines/20+1)*2
阅读全文
posted @ 2013-11-26 11:41 emanlee
阅读(390)
评论(0)
推荐(0)
2013年11月20日
python getopt使用
摘要: python中 getopt 模块 (import getopt),该模块是专门用来处理命令行参数的函数getopt(args, shortopts, longopts = [])参数args一般是sys.argv[1:]shortopts 短格式 (-) longopts 长格式(--) 命令行中...
阅读全文
posted @ 2013-11-20 21:56 emanlee
阅读(558)
评论(0)
推荐(0)
2013年11月15日
安装和使用screen
摘要: 安装和使用screen安装screenyum可以在线安装screenyum install screen使用screen1、创建screen会话;进入Xshell,运行以下:screen 2、离开screen,但是保留里面的程序继续运行,操作是Ctrl+a d ,让程序在后台运行-S 指定scr...
阅读全文
posted @ 2013-11-15 08:26 emanlee
阅读(1108)
评论(0)
推荐(0)
上一页
1
···
213
214
215
216
217
218
219
220
221
···
313
下一页