vi/vim 中可以使用 :s 命令来替换字符串。以前只会使用一种格式来全文替换,今天发现该命令有很多种写法(vi 真是强大啊,还有很多需要学习),记录几种在此,方便以后查询。 :s/vivian/sky/ 替换当前行第一个 vivian 为 sky :s/vivian/sky/g 替换当前行所.....
分类:
系统相关 时间:
2015-08-12 06:37:24
阅读次数:
177
vi/vim 中可以使用 :s 命令来替换字符串。该命令有很多种不同细节使用方法,可以实现复杂的功能,记录几种在此,方便以后查询。? ? :s/vivian/sky/ 替换当前行第一个 vivian 为 sky? ? :s/v...
分类:
其他好文 时间:
2015-08-11 10:19:16
阅读次数:
98
1.1实验环境:服务器操作系统:CentOS6.7=192.168.24.37客户端操作系统:CentOS6.7=192.168.24.36虚拟机:VMwareWorkstation1.2实验背景从一台服务器上的文件远程复制到另一台服务器上的方法很多,今天在这里sky采用Linuxscp命令来完成此任务。即从服务器端拷贝一份源码文件“m..
分类:
系统相关 时间:
2015-08-08 20:03:58
阅读次数:
211
1.生产证书 在 Visual Studio命令行生产证书(注意是系统管理员,非管理员会出现异常) 生成命令如下 makecert -sr localmachine(证书位置) -ss My(目录) -n CN=WCFServerPK(证书名称) -sky exchange -pe -r...
分类:
其他好文 时间:
2015-08-08 01:08:52
阅读次数:
310
题目要求:给定一个字符串由不同单词组成,返回其相反顺序,中间可能有多余字符:例如:Given s = "the sky is blue",return "blue is sky the".个人解法:1.暴力,主要是对于两个单词中间存在多个空格的处理。2. 利用栈来存储临时变量。3.缺点,空间利用太大...
分类:
其他好文 时间:
2015-08-07 07:05:41
阅读次数:
115
从当前用户导出到本地计算机的的证书格式为.pfx 并且要导出私钥。如何创建证书: makecert.exe -sr LocalMachine -ss My -a sha1 -n CN=JiangServer -sky exchange -pe (服务端证书) makecert.exe -sr Loc...
分类:
其他好文 时间:
2015-08-02 23:03:17
阅读次数:
200
Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".Update (2015-02-12):For C prog...
分类:
其他好文 时间:
2015-08-01 21:59:34
阅读次数:
122
hdu 4396 More lumber is requiredDescription
“More lumber(木材) is required” When the famous warcrafts player Sky wants to build a Central Town, he finds there is not enough lumber to build his Central T...
分类:
其他好文 时间:
2015-07-31 18:36:40
阅读次数:
141
操作系统:CentOS生产环境要求不超过6条历史记录,终端超时为6分钟。操作步骤如下:[sky@sky9896~]$echo"exportTMOUT=600">>/etc/profile-bash:/etc/profile:权限不够[sky@sky9896~]$su-root密码:[root@sky9896~]#echo"exportTMOUT=600">>/etc/profile#永久生效[r..
分类:
其他好文 时间:
2015-07-27 00:37:51
阅读次数:
159