最近为了完成工作,需要将两个文件A.old和A进行比较,然后将A中新增加的部分保存到A中,其他部分删除。经过查找相关资料,发现有两种比较好的方法。1. 使用diff命令diff old.file new.file | grep "^> " | sed 's/> //g' > temp.file #只...
分类:
系统相关 时间:
2014-11-05 18:56:51
阅读次数:
274
1.以DBA身份登录 $sqlplussys/eastcom@ORCLassysdba(在命令窗口下) 也可以使用PL/SQL2.创建临时表空间1 create temporary tablespace jiashubing_temp 2 tempfile 'E:\app\USER\ora...
分类:
数据库 时间:
2014-11-05 16:24:32
阅读次数:
211
滑雪录像{silver题3}【问题描述】 冬奥会的电视时刻表包含N (1 m do dec(j);23 if not (i>j) then24 begin25 temp:=s[i];s[i]:=s[j];s[j]:=temp;26 temp:=t[i];t[...
分类:
其他好文 时间:
2014-11-04 19:36:25
阅读次数:
260
安装svn服务: yum?-y?install?svn
mkdir?/home/svn 创建svn版本库: <project> 版本库项目名称 <username> 用户名 <password> 密码 以下代码为创建版本库并添加一个用户的脚本 cd?~
mkdir?-p?./temp/trun...
分类:
其他好文 时间:
2014-11-04 17:43:39
阅读次数:
243
Invoke-WMIMethod-ComputerName$ip-Credential$cred-pathWin32_product-NameInstall-ArgumentList@($true,$null,"D:\temp\install.msi")
分类:
其他好文 时间:
2014-11-04 12:57:27
阅读次数:
202
这是一道经典的NP问题,采用回朔法
i从1开始,
先加入1,再加入2 temp=[1,2]
然后去掉2 加3 temp=[1,3]
然后去掉3 加4 temp=[1,4]
然后去掉4 i=5不合法了 结束for循环
然后去掉1
返回到i=1,然后i++...
分类:
其他好文 时间:
2014-11-04 11:14:38
阅读次数:
187
1.如何实现字符串的反转例如:“how are you”--->“you are how”
public class InverseString {
public void swap(char[] arr,int front,int end){//将char[]反转
while(front<end){
char temp=arr[end];
arr...
分类:
编程语言 时间:
2014-11-01 19:17:22
阅读次数:
191
这个问题的原因是出在PhP Session设置不正确???解决方法:检查PHP配置文件php.ini,检查以下配置:session.save_path=”C:\temp” 是否设置正确,目录是否创建,权限是否正常。session_start=1启用sessionsession.use_trans_s...
public void BubbleSort(int[] array) { int i, j, temp; for (i = 0; i 升序,< 降序 { ...
分类:
编程语言 时间:
2014-10-30 18:43:00
阅读次数:
171
如果class内含const static integral data member,那么根据C++标志规格,我们可以在class之内直接给予初值。所谓integral泛指所有的整数型别(包括浮点数),不单只是指int,下面是一个例子:#includeusing namespace std;temp...
分类:
其他好文 时间:
2014-10-29 23:33:08
阅读次数:
356