上一页 1 ··· 4 5 6 7 8 9 10 11 下一页
  2010年9月21日
摘要: Chapter 4: Essential Linux Commands __Linux 101 HacksHack 23. Sort CommandSort command sorts the lines of a text file. employee information in the format: employee_name:employee_id:department_name.[... 阅读全文
posted @ 2010-09-21 17:30 oyzway 阅读(559) 评论(0) 推荐(0)
摘要: Chapter 4: Essential Linux Commands __Linux 101 HacksHack 17. Grep Commandgrep command is used to search files for a specific text.Syntax: grep [options] pattern [files]Option -v, will display all the... 阅读全文
posted @ 2010-09-21 16:44 oyzway 阅读(473) 评论(0) 推荐(0)
  2010年9月19日
摘要: 第一次握手(Connection Request, CR):连接发起方(通常称为客户或请求端)发送一个TCP报文,设置SYN标志,指明客户打算连接的服务器的端口,以及初始化序列号ISN( x )。第二次握手(Connection Confirm, CC):服务器发回一个TCP报文作为应答,该报文中设置了SYN标志和ACK标志,将确认号设置为客户发来的ISN+1( x+1 ),将序列号设置为服务器端... 阅读全文
posted @ 2010-09-19 16:18 oyzway 阅读(872) 评论(0) 推荐(0)
  2010年9月18日
摘要: ----------------------使用数据处理函数----------------------常见的文本处理函数代码日期和时间处理函数日期格式:yyyy-mm-dd代码数值处理函数代码----------------------汇总数据----------------------聚集函数:运行在行组上,计算和返回单个值的函数。[代码]代码聚集不同值对以上5个聚集函数都可以如下使用: 对所... 阅读全文
posted @ 2010-09-18 01:49 oyzway 阅读(901) 评论(0) 推荐(1)
  2010年9月17日
摘要: 正则表达式作用是匹配方本,将一个模式(正则表达式)与一个文本串进行比较。MySQL用WHERE子句对正则表达式提供了初步的支持,允许你指定用正则表达式过滤SELECT检索出的数据。MySQL仅支持多数正则表达式实现的一个很小的子集。----------------------9.2.1 基本字符匹配REGEXP后所跟的东西作为正则表达式处理。代码. 表示匹配任意一个字符。代码MySQL中的正则表达... 阅读全文
posted @ 2010-09-17 19:15 oyzway 阅读(105514) 评论(1) 推荐(9)
摘要: Linux 101 Hacks 系列:Chapter 1: Powerful CD Command Hacks__Linux 101 HacksChapter 2: Date Manipulation__Linux 101 HacksChapter 3: SSH Client Commands __Linux 101 HacksChapter 4: Essential Linux Commands (part 1) __Linux 101 HacksChapter 4: Essential Linux Commands (part 2) __Linux 101 HacksChapter 5: 阅读全文
posted @ 2010-09-17 16:29 oyzway 阅读(249) 评论(0) 推荐(0)
摘要: Chapter 3: SSH Client Commands __Linux 101 HacksHack 12. Identify SSH Client Version[代码]The following example indicates that this particular system is using SSH2:[代码]Hack 13. Login to Remote Host usin... 阅读全文
posted @ 2010-09-17 16:14 oyzway 阅读(362) 评论(0) 推荐(0)
  2010年9月16日
摘要: Linux Command Line and Shell Scripting Bible__第11章第11章 处理用户输入向shell脚本传递数据的最基本方式是使用:命令行参数。位置参数:$0为程序名称,$1为第一个参数,$2为第二个参数,……直到$9为第9个参数。第9个变量之后,必须使用大括号将变量括起来,如${10}。读取程序名称:传递给变量$0的字符实际上是程序的... 阅读全文
posted @ 2010-09-16 19:27 oyzway 阅读(622) 评论(0) 推荐(0)
  2010年9月14日
摘要: 字符计数问题这里有个字符串'hereisasampleofenglishtext'问里面各个字符出现次数是多少要求返回结果:(字典是无序的,所以只要结果正确,不要求顺序如此){'a':2,'':6,'e':5,'g':1,'f':1,'i':2,'h':2,'m':1,'l':2,'o':1,'n':1,'p':1,'s':3,'r':1,'t':2,'x':1}代码:代码更多解法参考:tieba... 阅读全文
posted @ 2010-09-14 22:23 oyzway 阅读(345) 评论(0) 推荐(0)
摘要: [代码]转:[代码] 阅读全文
posted @ 2010-09-14 21:06 oyzway 阅读(1204) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 下一页