如果要在第二行即“bbbb”行的上添加一行,内容为“xiaowu”,可以把参数“a”换成“i”[root@xiaowushell]#sed‘/b/i\xiaowu‘file
aaaa
xiaowu
bbbb
cccc
dddd
[root@xiaowushell]#sed‘/bbbb/a\xiaowu‘file
aaaa
bbbb
xiaowu
cccc
bbbb
xiaowu
dddd
#a是after,i是infront
分类:
其他好文 时间:
2017-04-04 23:49:58
阅读次数:
179
方法中少个方法就会出现一些问题. 比如进行了断线测试,结果再操作时就出现了文件被锁的情况,最终查了官网的论坛,才得以解决 How to unlock if the working copy is locked? You can use SvnClient.Cleanup(path) for this ...
分类:
其他好文 时间:
2017-04-04 20:04:08
阅读次数:
262
K-th Number Time Limit: 20000MS Memory Limit: 65536K Total Submissions: 55456 Accepted: 19068 Case Time Limit: 2000MS Description You are working for ...
分类:
其他好文 时间:
2017-04-04 00:44:38
阅读次数:
190
It was not working for me. This is what I had to do: Bring up customization dialog with "Tools\Operations..." Bring up the keystroke mapper with "Keyb ...
分类:
Web程序 时间:
2017-04-01 12:49:57
阅读次数:
176
K-th Number Time Limit: 20000MS Memory Limit: 65536K Total Submissions: 55340 Accepted: 19030 Case Time Limit: 2000MS Description You are working for ...
分类:
其他好文 时间:
2017-04-01 12:30:07
阅读次数:
218
引言: 在日常工作中,经常会碰到类似的场景,需要计算在某个时间段内的工作日以及确定某天是否为工作日,这里的介绍的工具包将很好的解决这个问题。
分类:
编程语言 时间:
2017-03-23 19:15:47
阅读次数:
331
Working with patches Prepare quilt configuration Adding a new patch Edit an existing patch Adding or editing kernel patches Adding or editing toolchai ...
分类:
其他好文 时间:
2017-03-15 18:57:38
阅读次数:
346
Git工作区和暂存区 Git和其他版本控制系统如SVN的一个不同之处就是有暂存区的概念。 先来看名词解释。 工作区(Working Directory) 就是你在电脑里能看到的目录,比如我的gitlianxi文件夹就是一个工作区: 版本库(Repository) 工作区有一个隐藏目录.git,这个不 ...
分类:
其他好文 时间:
2017-03-12 20:11:46
阅读次数:
110
在人于人之间的相处中,换位思考有利于人们理解彼此的需求,进而促成共赢的局面。把换位思考用到软件的设计中,能够提升软件的质量。这是我在Michael Feathers的培训里,领悟到的最巧妙的一个思维方式。如果你对Michael的名字不熟悉,那么他写的Working Effectively with ...
分类:
其他好文 时间:
2017-03-12 19:33:36
阅读次数:
111
I was working on some code with a Docker Windows container today and ran into this error message: ERROR: client version 1.22 is too old. Minimum suppo ...