ChinaUnix.net
相关文章推荐:

awk sed xargs

有xml文件格式如下: ]>  &n...

by ghostgorst - Shell - 2009-08-28 13:28:10 阅读(2943) 回复(12)

相关讨论

文件a.txt如下 hello ....... 我想把hello替换成 hi, hello不是固定的 是固定的 ,也就是说我想把行下的第一个非空行替换成hi,该怎么做啊?

by lzx4456 - Shell - 2011-07-15 09:15:05 阅读(2947) 回复(8)

请问哪位兄弟有比较好的sedawk的资料吗,比较详细的讲解sedawk的。网上下了sedawk第二版中文pdf文档,质量太差了,里面代码都看不清楚,郁闷啊!

by timdcn - Shell - 2008-06-21 21:02:57 阅读(2173) 回复(9)

才知道,编辑器也是可以编程的!才知道,编辑器也可以是非交互的。 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/67326/showart_586075.html

by jiedo - Linux文档专区 - 2008-04-25 22:01:23 阅读(601) 回复(0)

有一个字符串,我想把其中的 " 换成 \" 请各位指点一下?????

by stiandao - Shell - 2005-12-16 16:04:22 阅读(2321) 回复(17)

问问高手我想把工资前面的空格删掉,和把其它多空格组成的行替换成一个空格有办法吗? 工资 金额 事项 岗位

by bnls - Shell - 2005-06-06 12:29:02 阅读(615) 回复(1)

本帖最后由 一棵菠菜 于 2011-10-20 10:58 编辑 [code]请教大家一 shell 问题: 当 consultant501@hotmail.com 或者 8989@hotmail.com 关键字存在时取出关键字所在行和下一行,并且当取出的第二行存在关键字 remote 时才显示第一行 9 Oct 2011 08:51:17 GMT #46858383 9084 <> remote info@cbn.org 19 Oct 2011 08:42:21 GMT #66798601 15299 <> remote info@cbn.org 19 Oct 2011 08:12:57 GMT #66...

by 一棵菠菜 - Shell - 2011-10-20 11:38:15 阅读(2175) 回复(9)

请问,linux的命令awk,xargs怎么使用?

你好

by greenandtree - Shell - 2011-04-21 20:52:23 阅读(2374) 回复(3)

在杀死多个进程的时候,用了一个: ps -ef|grep onbar|awk '{print $2}'|xargs kill -a 但是,awkxargs是什么意思阿,我在这呆惯了,不想到Solaris 版去发贴,请大家指教哦。

by amiescort - Informix - 2003-07-05 22:14:27 阅读(2896) 回复(3)

编写awk脚本 ==================== 1. 从 Hello, World 开始 ==================== we create a file named test that contains a single line. This example shows a script that contains the print statement: $ echo 'this line of data is ignored' > test $ awk '{ print "hello, world"}' test This scripts has only a single action, which is enclosed in braces. 这个脚本只有一个动作, 被放在{}中. 这个动作是为每行的...

by ruiqingzheng - AIX文档中心 - 2006-01-20 06:33:32 阅读(1375) 回复(0)

48|dec|3bc1997|lpsx|68.00|lvx2a|138 483|sept|5ap1996|usp|65.00|lvx2c|189 有个文本t.txt已经为上面所示,有很多行 想实现的结果为 将文本的2,4,6域名改为;输出 48|dec;3bc1997|lpsx;68.00|lvx2a;138 483|sept;5ap1996|usp;65.00|lvx2c;189 请问怎么实现 多谢 各位大神

by Nathon99 - Shell - 2014-08-04 18:13:24 阅读(2578) 回复(26)