上一页 1 ··· 219 220 221 222 223 224 225 226 227 ··· 351 下一页
摘要: 方法一(直接用文件名):取两个文本文件的并集、交集、差集并: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 阅读(3730) 评论(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 阅读(6179) 评论(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 阅读(1445) 评论(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 阅读(2715) 评论(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 阅读(773) 评论(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 阅读(399) 评论(0) 推荐(0)
摘要: python中 getopt 模块 (import getopt),该模块是专门用来处理命令行参数的函数getopt(args, shortopts, longopts = [])参数args一般是sys.argv[1:]shortopts 短格式 (-) longopts 长格式(--) 命令行中... 阅读全文
posted @ 2013-11-20 21:56 emanlee 阅读(575) 评论(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 阅读(1140) 评论(0) 推荐(0)
摘要: 输出到文件log中,并在屏幕上显示:#ls >&1 | tee log追加输出到文件log中,并在屏幕上显示:#ls >&1 | tee -a log 阅读全文
posted @ 2013-11-13 11:29 emanlee 阅读(1646) 评论(0) 推荐(0)
摘要: 使用 fuser xxx 命令查看xxx文件被哪个进程占用,然后关闭该进程,解决问题。# fuser xxxxxx: 2878# kill -9 2878注:xxx是文件名;2878是进程号;kill -9 2878 强制终止该进程;必须在root权限下才可用fuser。 阅读全文
posted @ 2013-11-12 15:39 emanlee 阅读(29368) 评论(0) 推荐(1)
上一页 1 ··· 219 220 221 222 223 224 225 226 227 ··· 351 下一页