才知道,编辑器也是可以编程的!才知道,编辑器也可以是非交互的。 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/67326/showart_586075.html
本帖最后由 一棵菠菜 于 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...
在杀死多个进程的时候,用了一个: ps -ef|grep onbar|awk '{print $2}'|xargs kill -a 但是,awk和xargs是什么意思阿,我在这呆惯了,不想到Solaris 版去发贴,请大家指教哦。
编写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. 这个脚本只有一个动作, 被放在{}中. 这个动作是为每行的...
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 请问怎么实现 多谢 各位大神