上一页 1 ··· 205 206 207 208 209 210 211 212 213 ··· 337 下一页
摘要: shell/bash 让vi/vim显示空格,及tab字符Vim 可以用高亮显示空格和TAB。文件中有 TAB 键的时候,你是看不见的。要把它显示出来::set listTAB 键显示为 ^I, $显示在每行的结尾,表示换行;空格仍然显示为空格。:set list 进入List Mode:set n 阅读全文
posted @ 2013-12-23 23:12 emanlee 阅读(28567) 评论(0) 推荐(0)
摘要: 方法一(直接用文件名):取两个文本文件的并集、交集、差集并: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 阅读(3692) 评论(0) 推荐(0)
摘要: 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 阅读(6147) 评论(0) 推荐(0)
摘要: 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 阅读(1402) 评论(0) 推荐(0)
摘要: 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 阅读(2689) 评论(0) 推荐(0)
摘要: 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 阅读(743) 评论(0) 推荐(0)
摘要: #假设文件名是: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 阅读(375) 评论(0) 推荐(0)
摘要: python中 getopt 模块 (import getopt),该模块是专门用来处理命令行参数的函数getopt(args, shortopts, longopts = [])参数args一般是sys.argv[1:]shortopts 短格式 (-) longopts 长格式(--) 命令行中... 阅读全文
posted @ 2013-11-20 21:56 emanlee 阅读(542) 评论(0) 推荐(0)
摘要: 安装和使用screen安装screenyum可以在线安装screenyum install screen使用screen1、创建screen会话;进入Xshell,运行以下:screen 2、离开screen,但是保留里面的程序继续运行,操作是Ctrl+a d ,让程序在后台运行-S 指定scr... 阅读全文
posted @ 2013-11-15 08:26 emanlee 阅读(1079) 评论(0) 推荐(0)
摘要: 输出到文件log中,并在屏幕上显示:#ls >&1 | tee log追加输出到文件log中,并在屏幕上显示:#ls >&1 | tee -a log 阅读全文
posted @ 2013-11-13 11:29 emanlee 阅读(1611) 评论(0) 推荐(0)
上一页 1 ··· 205 206 207 208 209 210 211 212 213 ··· 337 下一页