<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[sql_xep的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/sql_xep</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; sql_xep]]></copyright><item><title><![CDATA[linux c fork简单调用bin or shell script demo]]></title><link>https://blog.csdn.net/sql_xep/article/details/19043435</link><guid>https://blog.csdn.net/sql_xep/article/details/19043435</guid><author>sql_xep</author><pubDate>Mon, 10 Feb 2014 17:14:39 +0800</pubDate><description><![CDATA[// exec shell script
#include
#include
#include
void hello()
{
  printf("hello word \n");
}
int main()
{
  pid_t pid;
  pid=fork();
  if(pid
  {
    printf("fail to fork \n");
    exit(]]></description><category></category></item><item><title><![CDATA[linux c 参数与环境变量]]></title><link>https://blog.csdn.net/sql_xep/article/details/18964915</link><guid>https://blog.csdn.net/sql_xep/article/details/18964915</guid><author>sql_xep</author><pubDate>Fri, 07 Feb 2014 16:29:32 +0800</pubDate><description><![CDATA[读取参数内容小测试
#include
int main(int argc,char* argv[])
{
  int i ;
  printf("count of arguments:%d \n",argc);
  for (i=0;i
   printf("argv[%d]:%s \n",i,argv[i]);
  return 0;
}
 
 
读取环境变量测试
#i]]></description><category></category></item><item><title><![CDATA[c++ note some detail]]></title><link>https://blog.csdn.net/sql_xep/article/details/18863011</link><guid>https://blog.csdn.net/sql_xep/article/details/18863011</guid><author>sql_xep</author><pubDate>Wed, 29 Jan 2014 15:11:40 +0800</pubDate><description><![CDATA[cin>> will check digit or other string automatically  but cin.get  don't check it

#include

using namespace std;

int main()
{
  char one_char,decimal_point,digit1,digit2;
  long dollars;
 ]]></description><category></category></item><item><title><![CDATA[c++ note point]]></title><link>https://blog.csdn.net/sql_xep/article/details/18843867</link><guid>https://blog.csdn.net/sql_xep/article/details/18843867</guid><author>sql_xep</author><pubDate>Tue, 28 Jan 2014 16:38:06 +0800</pubDate><description><![CDATA[#point
classType *pi; pi= new classType; or pi= new classType('x',123);  delete pi;

typedef int* intPtr ;  intPtr p; ==  int *p;

const int * p        p is not allow change *p value     int * co]]></description><category></category></item><item><title><![CDATA[c++读书笔记]]></title><link>https://blog.csdn.net/sql_xep/article/details/18816069</link><guid>https://blog.csdn.net/sql_xep/article/details/18816069</guid><author>sql_xep</author><pubDate>Mon, 27 Jan 2014 16:30:45 +0800</pubDate><description><![CDATA[--I/O object
in_stream.open("file_name");
in_stream.open("file_name",flag);   flag : ios::in   out  binary   ate  app  trunc
in_stream.fail(); --if file open succeed return true 
in_stream.eod() ;]]></description><category></category></item><item><title><![CDATA[将文件格式化并输出]]></title><link>https://blog.csdn.net/sql_xep/article/details/18815771</link><guid>https://blog.csdn.net/sql_xep/article/details/18815771</guid><author>sql_xep</author><pubDate>Mon, 27 Jan 2014 16:29:02 +0800</pubDate><description><![CDATA[我们是搞运维的。由于要放假了　需要知道磁盘的使用情况，所以将df -h好多服务器的结果输出到一个文件中，再写个c++程序过滤之。df -h 的文件列表格式如下：

10.109.10.1
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2              15G   2.4G   12G  18% /]]></description><category></category></item><item><title><![CDATA[linux　share screen]]></title><link>https://blog.csdn.net/sql_xep/article/details/17121235</link><guid>https://blog.csdn.net/sql_xep/article/details/17121235</guid><author>sql_xep</author><pubDate>Wed, 04 Dec 2013 16:52:21 +0800</pubDate><description><![CDATA[用linux自带工具实现演示效果 --实时　
1. script    scriptreplay


2. screen  
    terminal1   输入    screen -S testu
    terminal2              screen -x  or  screen -ls    screen -x  number


3. mkfifo 

]]></description><category></category></item><item><title><![CDATA[读书笔记　sort  and uniq]]></title><link>https://blog.csdn.net/sql_xep/article/details/17121171</link><guid>https://blog.csdn.net/sql_xep/article/details/17121171</guid><author>sql_xep</author><pubDate>Wed, 04 Dec 2013 16:49:55 +0800</pubDate><description><![CDATA[sort　即可以从特定的文件，也可以从stdin中获取输入，并将输出写入stdout。uniq的工作模式类似。


-n按数字进行排序
sort -n file1 file 2 > sorted.txt


sort file1.txt file2.txt -o sorted.txt


cat file1.txt | uniq > uniq.txt


-r  反转　-]]></description><category></category></item><item><title><![CDATA[读书笔记　　-tr]]></title><link>https://blog.csdn.net/sql_xep/article/details/17119611</link><guid>https://blog.csdn.net/sql_xep/article/details/17119611</guid><author>sql_xep</author><pubDate>Wed, 04 Dec 2013 15:36:42 +0800</pubDate><description><![CDATA[translate  替换　删除和压缩
tr [options] set1   set2
如果set1 与 set2长度不等　则set2会不断重复最后一字符　直到与set1相等


简单加密


echo 12345 | tr '0-9' '9876543210'


--删除字串
echo "hello 123 world 456" | tr -d '0-9'


]]></description><category></category></item><item><title><![CDATA[shell 命令　笔记--find]]></title><link>https://blog.csdn.net/sql_xep/article/details/17119043</link><guid>https://blog.csdn.net/sql_xep/article/details/17119043</guid><author>sql_xep</author><pubDate>Wed, 04 Dec 2013 15:08:46 +0800</pubDate><description><![CDATA[find 命令在shell脚本中会常常用到，下面记录了一些常用的参数　
 
find  path file_name              --基本语法


find  path \( -name "a.t*" -o -name "b.t*" \) -print


find /home/user -path "sly*" -print   --匹配文件路径或文件   path]]></description><category></category></item><item><title><![CDATA[random+tput 更改屏幕显示]]></title><link>https://blog.csdn.net/sql_xep/article/details/11655685</link><guid>https://blog.csdn.net/sql_xep/article/details/11655685</guid><author>sql_xep</author><pubDate>Fri, 13 Sep 2013 17:54:59 +0800</pubDate><description><![CDATA[trap  读取信号量　执行相应的操作

tput  更改终端显示命令　--tput cup 20  30  设置光标显示在20行30列的位置　　tput clear 清屏

这个script　完全是出于兴趣　不见得有什么实际用途　

功能说明：　9行设置接受这几项信息量无操作，主要目地是不让ctrl+c  ctrl+z 结束此script
                    1]]></description><category></category></item><item><title><![CDATA[批量更改文件名]]></title><link>https://blog.csdn.net/sql_xep/article/details/11634785</link><guid>https://blog.csdn.net/sql_xep/article/details/11634785</guid><author>sql_xep</author><pubDate>Fri, 13 Sep 2013 11:28:56 +0800</pubDate><description><![CDATA[遇到需要批量更改文件名的需求　所以写了脚本　　测试通过
由于时间有点紧　　　　　　　　所以需要调整的地儿还是挺多的　
不足的地是不能递归子文件夹　　之后有时间补上　需要说明的是 set　内置命令　　它可以将其后的命令输出结果转化为新参数，覆盖之前的$1 ..  $N　
　　　　　　 　　　　　　　　 剩下用到的小技巧就是用到了替换　　
 
1 #!/bin/bash
  2 
  3]]></description><category></category></item><item><title><![CDATA[oracle 11G 读书笔记之 tablespace]]></title><link>https://blog.csdn.net/sql_xep/article/details/7630410</link><guid>https://blog.csdn.net/sql_xep/article/details/7630410</guid><author>sql_xep</author><pubDate>Mon, 04 Jun 2012 13:43:00 +0800</pubDate><description><![CDATA[To create a bigfile tablespace, specify the BIGFILE keyword of the CREATE TABLESPACE
statement (CREATE BIGFILE TABLESPACE ...). Oracle Database automatically creates a
locally managed tablespace wit]]></description><category></category></item><item><title><![CDATA[比对两数据库中表与表 字段与字段的不同(4)]]></title><link>https://blog.csdn.net/sql_xep/article/details/7572258</link><guid>https://blog.csdn.net/sql_xep/article/details/7572258</guid><author>sql_xep</author><pubDate>Wed, 16 May 2012 13:31:13 +0800</pubDate><description><![CDATA[-- =============================================
-- Author:        
-- Create date: 
-- Description:    
-- compare database  table_column_name and   type 
--                   view_name 
--]]></description><category></category></item><item><title><![CDATA[比对两数据库中表与表 字段与字段的不同(3)]]></title><link>https://blog.csdn.net/sql_xep/article/details/7572252</link><guid>https://blog.csdn.net/sql_xep/article/details/7572252</guid><author>sql_xep</author><pubDate>Wed, 16 May 2012 13:30:13 +0800</pubDate><description><![CDATA[-- =============================================
-- Author:        
-- Create date: 
-- Description:    
-- compare database  table_column_name and   type 
--                   view_name 
--]]></description><category></category></item><item><title><![CDATA[比对两数据库中表与表 字段与字段的不同(2)]]></title><link>https://blog.csdn.net/sql_xep/article/details/7572246</link><guid>https://blog.csdn.net/sql_xep/article/details/7572246</guid><author>sql_xep</author><pubDate>Wed, 16 May 2012 13:28:59 +0800</pubDate><description><![CDATA[接上篇


  -- =============================================
-- Author:        
-- Create date: 
-- Description:    
-- =============================================
ALTER PROCEDURE [dbo].[CheckDa]]></description><category></category></item><item><title><![CDATA[比对两数据库中表与表 字段与字段的不同(1)]]></title><link>https://blog.csdn.net/sql_xep/article/details/7572225</link><guid>https://blog.csdn.net/sql_xep/article/details/7572225</guid><author>sql_xep</author><pubDate>Wed, 16 May 2012 13:27:35 +0800</pubDate><description><![CDATA[前两天检查了一下开发库与测试库的表、字段及字段类型 是否一致，如果不一致，先记录下来 然后更改之


  比对一次太浪费时间，索性写个小工具，比对视图名称 和 过程名称 之后再补上。


  没什么复杂的业务，就是反复查那几个字典表。回头有时间 把oracle的加上。


  判断列的过程 调试着有点烦了 ，所以前面定义了好多的变量 ，有兴趣的朋友可以优化一下。]]></description><category></category></item><item><title><![CDATA[用Ｃ写的停车收费代码]]></title><link>https://blog.csdn.net/sql_xep/article/details/7519792</link><guid>https://blog.csdn.net/sql_xep/article/details/7519792</guid><author>sql_xep</author><pubDate>Sat, 28 Apr 2012 13:35:09 +0800</pubDate><description><![CDATA[某市停车场收费标准为：
小型车：首小时内每15分钟收费:2.5元，首小时后每15分钟收费：3.75
大型车：首小时内每15分钟收费:5元，首小时后每15分钟收费：7.5
夜间收费标准（21：00---7：00）一律执行小型车每两小时1元，大型车每两小时2元
请编写程序，输入车型和进场时间（XXXX-XX-XX XX:XX）以及出场时间，计算停车时间，然后算出应收金额（请注意白天和晚上跨时间]]></description><category></category></item><item><title><![CDATA[备份恢复命令]]></title><link>https://blog.csdn.net/sql_xep/article/details/7162852</link><guid>https://blog.csdn.net/sql_xep/article/details/7162852</guid><author>sql_xep</author><pubDate>Thu, 29 Dec 2011 17:48:30 +0800</pubDate><description><![CDATA[--将test库全备份到d:\test.bak

BACKUP DATABASE [test] TO  DISK = N'd:\test.bak' WITH NOFORMAT, INIT,  NAME = N'test-完整 数据库 备份', SKIP, NOREWIND, NOUNLOAD,  STATS = 10
GO

--将test库日志到d:\test_log15_9_46]]></description><category></category></item><item><title><![CDATA[将历史记录移到历史表中]]></title><link>https://blog.csdn.net/sql_xep/article/details/7162824</link><guid>https://blog.csdn.net/sql_xep/article/details/7162824</guid><author>sql_xep</author><pubDate>Thu, 29 Dec 2011 17:43:58 +0800</pubDate><description><![CDATA[现在表中的数据量越来越大，需要将历史记录移到历史表中。以下过程可以实现此功能。如果觉得有问题请联系我。


--用一配制表存需要转移数据的大表名称
--每次都查表名与tab_name相匹配且is_used=1的　说明是当前的历史表
create table config_table(configID int,             --ID]]></description><category></category></item></channel></rss>