博客首页
注册
建议与交流
排行榜
加入友情链接
推荐
投诉
搜索:
帮助
靠谱并踏踏实实的
rickwang.cublog.cn
管理博客
发表文章
留言
收藏夹
博客圈
音乐
相册
文章
· 都是靠谱的
首页
关于作者
姓名: 职业: 年龄: 位置: 个性介绍:
||
<<
>>
||
我的分类
最新文章
·
Unix中find和grep联合使用
·
dos批处理命令详解
·
正则表达式的三种形式、常..
·
const,static,extern,..
·
Cshell: find gerp exec[zz]
最新留言
最新评论
最新收藏
统计信息
·
总访问量:1504
·
文章个数:6
·
评论条数:0
·
留言条数:0
·
网友推荐:
Unix中find和grep联合使用
<br> <div>查找一个目录下包含子目录的文件</div> <div>Find ./ -name “filename”</div> <div> </div> <div>在目录下包含子目录查找包含一定字符串的文件</div> <div>Find . –name *.c –exec grep –l ‘youstr {}</div> <div>上边的命令中name后必须是一个规定了文件扩展名的文件,不能用*.*。</div> <div>如果想用*.*,那么就不用-name参数了,改为:</div><span style="font-size: 10.5pt;">Find ./ *.* -exec grep –l ‘youstr’ {}</span>
查看全文
发表于:2008-05-12 ┆
阅读(77)
┆
评论(0)
dos批处理命令详解
<font size="4"><strong>dos批处理命令详解</strong></font> <hr size="1"> <font size="4"> </font> src="http://www.2008red.com/red_vip/articlehits.php?workid=44500&articleid=8481" type="text/javascript"> <p><font face="幼圆" size="4"><strong>一.简单批处理内部命令简介</strong> </font></p> <p><font face="幼圆" size="4">1.Echo 命令<br> <br>打开回显或关闭请求回显功能,或显示消息。如果没有任何参数,echo 命令将显示当前回显设置。 </font></p> <p><font face="幼圆" size="4">语法:<br> <br>echo [{on│off}] [message] <br>Sample:@echo off / echo hello world </font></p> <p><font face="幼圆" size="4">在实际应用中我们会把这条命令和重定向符号(也称为管道符号,一般用> >> ^)结合来实现输入一些命</font></p> <p><font face="幼圆" size="4">令到特定格式的文件中.这将在以后的例子中体现出来。 </font></p> <p><font face="幼圆" size="4">2.@ 命令 </font></p> <p><font face="幼圆" size="4">表示不显示@后面的命令,在入侵过程中(例如使用批处理来格式化敌人的硬盘)自然不能让对……
查看全文
发表于:2008-05-12 ┆
阅读(91)
┆
评论(0)
正则表达式的三种形式、常用模式和八大原则[zz]
正则表达式的三种形式、常用模式和八大原则<br><br>一、正则表达式的三种形式<br>首先我们应该知道 Perl 程序中,正则表达式有三种存在形式,他们分别是:<br><br>匹配:m/<regexp>/ (还可以简写为 /<regexp>/ ,略去 m)<br><br>替换:s/<pattern>/<replacement>/<br><br>转化:tr/<pattern>/<replacemnt>/<br><br>这三种形式一般都和 =~ 或 !~ 搭配使用(其中 "=~" 表示相匹配,在整条语句中读作 does,"!~" 表示不匹配,在整条语句中读作 doesn't),并在左侧有待处理的标量变量。如果没有该变量和 =~ !~ 操作符,则默认为处理 $_ 变量中的内容。<br>另外还有:<br><br>foreach (@array) { s/a/b/; } # 此处每次循环将从 @array 数组中取出一个元素存放在 $_ 变量中,并对 $_ 进行替换处理。<br>while (<FILE>) { print if (m/error/); } # 这一句稍微复杂一些,他将打印 FILE 文件中所有包含 error 字符串的行。<br><br>替换操作 s/<pattern>/<replacement>/ 还可以在末尾加上 e 或 g 参数,他们的含义分别为:<br><br>s/<pattern>/<replacement>/g 表示把待处理字符串中所有符合 ……
查看全文
发表于:2008-05-12 ┆
阅读(88)
┆
评论(0)
const,static,extern,volatile的使用[zz]
<table class="FCK__ShowTableBorders" style="border-collapse: collapse;" border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody> <tr> <td align="center" height="25"><font style="font-size: 14pt;" color="#02368d"><strong>const,static,extern,volatile的使用</strong></font><br></td></tr> <tr> <td bgcolor="#d2dee2" height="1"> </td></tr> <tr> <td bgcolor="#ffffff" height="1"> </td></tr> <tr> <td align="center"> <table class="FCK__ShowTableBorders" style="border-collapse: collapse;" border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody> <tr> <td width="100%"> <div id="art" style="margin: 15px;" width="100%"> <div><strong>1.const的用法:<br></strong><em>为什么使用const?</em><br>采用符号常量写出的代码更容易维护;指针常常是边读边移动,而不是边写边移动;许多函数参数是只读不写的。const最常见用途是作为数组的界和switch分情况标号(也可以用枚举符代替) <br><br><em>用法1:常量</em><br>取 代了C中的宏定义,声明时必须进行初始化。const限制了常量的使用方式……
查看全文
发表于:2008-05-12 ┆
阅读(118)
┆
评论(0)
Cshell: find gerp exec[zz]
<p>find是查找文件,而grep是在文件中查找字符串。</p> <p>1.man find的部分说明:<br> -exec command ;<br> Execute command; true if 0 status is returned. All following<br> arguments to find are taken to be arguments to the command until<br> an argument consisting of `;' is encountered. The string `{}'<br> is replaced by the current file name being processed everywhere<br> &nbs……
查看全文
发表于:2008-05-12 ┆
阅读(69)
┆
评论(0)
数据结构C语言实现——队列[zz]
<div><span style="color: rgb(0, 0, 0);">PART I:<br><br>#include </span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">stdio.h</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br>#include </span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">stdlib.h</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br><br>typedef </span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);"> elemType;<br></span><span style="color: rgb(0, 128, 0);">/*</span><span style="color: rgb(0, 128, 0);">**********************************************************************</span><span style="color: rgb(0, 128, 0);">*/</span><span style="color: rgb(0, 0, 0);"><br></span><span style="color: rgb(0, 128, 0);">/*</span><span style="color: rgb(0, 128, 0);"> &nb……
查看全文
发表于:2008-05-12 ┆
阅读(90)
┆
评论(0)