上一页 1 ··· 52 53 54 55 56 57 58 59 60 ··· 104 下一页
摘要: 信息备忘,可惜是日语版http://www.uetyi.mydns.jp/wordpress/command/entry-124.html 阅读全文
posted @ 2013-01-10 13:16 健哥的数据花园 阅读(264) 评论(0) 推荐(0)
摘要: gg 跳到 行首G 跳到行尾行号gg 跳到指定行 阅读全文
posted @ 2013-01-10 09:52 健哥的数据花园 阅读(8939) 评论(0) 推荐(0)
摘要: 看例子:[root@localhost tmp]# sed '=' test.txt1tsttst tsttsttst2west gao3west abces[root@localhost tmp]# sed = test.txt | sed 'N;s/\n/\t/'1 tsttst tsttsttst2 west gao3 west abces[root@localhost tmp]# N的解释:N:Add a newline to the pattern space, then append the next line of input to the p.. 阅读全文
posted @ 2013-01-09 17:56 健哥的数据花园 阅读(5788) 评论(0) 推荐(0)
摘要: 总算在网上找来一个相对简单的例子。验证如下:[root@localhost tmp]# cat test.txttsttst tsttsttstwest gaowest abces[root@localhost tmp]# egrep "w(es)t.*\1" test.txtwest abces[root@localhost tmp]# grep "w(es)t.*\1" test.txtgrep: Invalid back reference[root@localhost tmp]# grep -E "w(es)t.*\1" te 阅读全文
posted @ 2013-01-09 17:42 健哥的数据花园 阅读(9532) 评论(0) 推荐(0)
摘要: 网络上的文章,多数讲的是把 Linux当作 samba 服务器,换句话说,就是从windows来访问linux上的目录和打印机。有些时候,我们可能需要从linux上来访问 Windows 上的文件和打印机,这是是把linux当作 samba的客户端。故此备忘!windows 已经提供了 smba 服务,参见:http://msdn.microsoft.com/en-us/library/windows/desktop/aa365233(v=vs.85).aspx我们要做的,就是如何使用之。以CentOS5.8为例:一,从linux访问 Windows 文件: 1. windows 机器上的设定 阅读全文
posted @ 2013-01-09 13:11 健哥的数据花园 阅读(8273) 评论(0) 推荐(0)
摘要: http://www.gnu.org/software/coreutils/manual/coreutils.html#nl-invocationThe beginnings of the sections of logical pages are indicated in the input file by a line containing exactly one of these delimiter strings:‘\:\:\:’start of header; ‘\:\:’start of body; ‘\:’start of footer. 我的例子:[root@localhost 阅读全文
posted @ 2013-01-08 17:29 健哥的数据花园 阅读(369) 评论(0) 推荐(0)
摘要: http://www.gnu.org/software/coreutils/这个比 看 man 强太多了。 阅读全文
posted @ 2013-01-08 17:18 健哥的数据花园 阅读(201) 评论(0) 推荐(0)
摘要: 开始前期准备:SQL> create directory utl as '/home/oracle/test';Directory created.SQL> grant execute on utl_file to scott;Grant succeeded.SQL> 文件操作:declare fn utl_file.file_type; OutputRecord VARCHAR2(255);begin OutputRecord :='abcdefg'; fn:=utl_file.fopen('UTL','test.tx 阅读全文
posted @ 2012-12-06 16:04 健哥的数据花园 阅读(1324) 评论(0) 推荐(0)
摘要: 开始例子:set serveroutput onDECLARE buffer VARCHAR2(100); status INTEGER;BEGIN dbms_output.put_line('This is'); dbms_output.put_line('a test.'); dbms_output.get_line(buffer, status); dbms_output.put_line('Buffer: ' || buffer); dbms_output.put_line('Status: ' || TO_CHAR(st 阅读全文
posted @ 2012-12-06 13:58 健哥的数据花园 阅读(513) 评论(0) 推荐(0)
摘要: 开始创建测试表SQL> create table a(a date);创建作业SQL> create or replace procedure test as2 begin3 insert into a values(sysdate);4 end;执行:declare v_job1 number;begin dbms_job.submit(v_job1,'test;',sysdate,'sysdate+1/1440'); COMMIT; dbms_job.run(v_job1);end;其中,dmbs_job.run是必须的。否则不会执行。查看作业: 阅读全文
posted @ 2012-12-06 12:08 健哥的数据花园 阅读(5119) 评论(0) 推荐(0)
上一页 1 ··· 52 53 54 55 56 57 58 59 60 ··· 104 下一页