码迷,mamicode.com
首页 >  
搜索关键字:sed head tail    ( 45574个结果
PHP Fatal error: Call to undefined function mysql_pconnect()
[root@qycaishenye]#tail-f/data/caishenye/sa_9_0.logPHPWarning:mkdir():Nosuchfileordirectoryin/data/caishenye/sa_9_0.phponline18PHPFatalerror:Calltoundefinedfunctionmysql_pconnect()in/data/caishenye/sa_9_0.phponline25InteractivemodeenabledPHPWarning:mkdir():..
分类:数据库   时间:2014-05-27 04:00:48    阅读次数:466
linux下自动ftp到服务器对比拷贝指定目录下文件
#!/bin/bash process=8 PWD=`pwd` DAT=`date` ftpip="192.168.1.1" user="ftp_username" password="ftp_password" local_dir="/home/" getlist() { ftp-n$ftpip<<EOF|awk‘{print$9}‘|sed‘/^$/d‘>$PWD/list user$user$password cdfile/ dir bye EOF } copy() { if[-f$P..
分类:系统相关   时间:2014-05-27 03:55:34    阅读次数:378
15-5-15培训日记
<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="Content-Type"content="text/html;charset=utf-8"/><ti..
分类:其他好文   时间:2014-05-27 03:41:43    阅读次数:304
LINUX用户和组小练习
1.创建一个用户mandriva,其ID号为2002,基本组为distro(组ID为3003),附加组为linux[root@localhost~]#groupadd-g3003distro [root@localhost~]#tail-1/etc/group distro:x:3003: [root@localhost~]#groupaddlinux [root@localhost~]#tail-1/etc/group linux:x:3004:[root@loca..
分类:系统相关   时间:2014-05-27 03:37:39    阅读次数:409
二进制查找树转换为双向链表
完全按照海涛哥剑指offer里边的递归思路来写的,基本一样,仅作学习验证,努力锻炼,努力学习!code如下: //Change a BSTree to a sorted double linklist struct BSTreeNode { int value; BSTreeNode *left; BSTreeNode *right; }head; //Create a node of...
分类:其他好文   时间:2014-05-22 10:23:27    阅读次数:237
leetcode:Insert Sort List
问题描述 对一个单链表进行插入排序,head指向第一个结点。 代码 /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */...
分类:其他好文   时间:2014-05-22 10:15:43    阅读次数:233
VB.NET版+三层实现登陆
三层已经学了一些时间了,开始觉得自己可以用C#写程序了,就用C#写了一个实现登陆的,真正再用在机房中,还是觉得很吃力的,所以,决定用vb.net敲了。下面是我用vb.net实现的登陆,可以给大家做一些参考。      这是构架的三层   数据库中的表T_User_DAL:UserI,Level,Password,Head,computer   首先看一下...
分类:Web程序   时间:2014-05-22 08:10:55    阅读次数:319
Grep egrep用法
grep -2 -iIr "err\|warn\|fail\|crit" /var/log/* 查找日志中的所有问题grep . filename >filename1 移除空行cat site.log | grep -i unica | tail -n 10find /path -name \*....
分类:其他好文   时间:2014-05-22 03:42:01    阅读次数:306
Centos 6.4安装配置apache平台的svn服务器
一、安装apache、subversion服务#yuminstallhttpdsubversionsubversion-develmod_dav_svn-y二、配置apache服务器#sed‘{/^$/d;/#/d}‘/etc/httpd/conf/httpd.conf ServerTokensOS ServerRoot"/etc/httpd" PidFilerun/httpd.pid Timeout60 KeepAliveOff MaxKeepAliveRequests100 K..
分类:其他好文   时间:2014-05-20 21:09:14    阅读次数:553
Leetcode:Remove Nth Node From End of List
戳我去解题Given a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. Aft...
分类:其他好文   时间:2014-05-20 08:04:28    阅读次数:291
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!