cat $i|grep " 0001 "|head -1|cut -c12-24 > dsmpout cat $i|grep " 0002 "|head -1|cut -c12-24 >> dsmpout cat $i|grep " 0003 "|head -1|cut -c12-24 >> dsmpout cat $i|grep " 0004 "|head -1|cut -c12-24 >> dsmpout cat $i|grep " 0005 "|head -1|cut -c12-24 >> dsmpout cat $i|grep " 0006 "|head -1|cut -c12-24 >> dsmpout cat $i|grep " 0007 "|head -1|cut -c12-24 >> dsmpout cat $i|grep " 0008 "|head -1|cut -c1...
by wangssh - Shell - 2006-01-22 11:16:05 阅读(2484) 回复(8)
[语法]: grep [选项] 模式 [文件…] [说明]: 在指定的文件中搜索模式,并显示所有包含模式的行,模式是一个正规表达式,在使用正规表达式时,最好将其引在单引号(’) 中,若指定文件为缺省,则使用标准输入,正规表达式可以是: . 匹配任意一个字符 * 匹配0个或多个*前的字符 ^ 匹配行开头 $ 匹配行结尾 [] 匹配[ ]中的任意一个字符,[]中可用 - 表示范围, 例如[a-z]表示字母a 至z 中的任意一个 \ 转意字符 命令中的选项为: -b ...
1、 Linux下 : grep "rt\>" zx 命令可以在zx下精确匹配 rt 但在Unix下运行,却没有任何显示,难道此命令格式只在Linux下执行? 2、 精确匹配的另外一种做法为 注意在每个匹配模式中抽取字符串后有一个< Ta b >键 但是无论我在unix和Linux下按Tab健,都没有正确反映
在使用 ./configure --with-mysql=/usr/local/bin 之后,报错,错误信息为: error: unable to find set_terminate in std or global namespace 请问一下不知道有没有哪位碰到过这个问题的,该如何解决。谢谢!
rt.. vim.org下不下来 sourceforge似乎被墙了 有的大大们发一份给我哈 [email]skycool1984@gmail.com[/email]