码迷,mamicode.com
首页 >  
搜索关键字:find    ( 24186个结果
Maximal Square
Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area. Given a 2D binary matrix filled with ...
分类:其他好文   时间:2016-09-07 10:35:12    阅读次数:104
yum出错Error: Cannot find a valid baseurl for repo: base
首先pingwww.baidu.com,若出现unknowhost,解决方法如下(修改dns配置)vi/etc/resolv.conf在此文件最后加入:nameserver8.8.8.8如果没有vi编辑器可用:echo"nameserver8.8.8.8">>/etc/resolv.conf然后pingwww.baidu.com可以ping通,不会再出现unknowhost若可以ping通,..
分类:Web程序   时间:2016-09-06 23:29:55    阅读次数:177
Gdb+Coredump learning
Sometimes running program in Unix will fail without any debugging info or warnings because of the laziness of programmer.. So if need to find the righ ...
分类:数据库   时间:2016-09-06 19:45:34    阅读次数:227
tomcat_log 脚本编写
#!/bin/bashlog_path=/xxxxx/yyyyy/logsbak_log=/aaaaa/bbbbbbak_name=log_$(date+%Y-%m-%d)day=30d=`date+%Y-%m-%d`[!-d$bak_log]&&mkdir$bak_logcd${log_path}find.-typef-mtime+7-name"*.log"-o-name"*.txt"-execmv{}$bak_log\;cpcatalina.out$bak_log/catalina.out..
分类:其他好文   时间:2016-09-06 17:04:39    阅读次数:144
并查集
刷题是遇到一题:http://www.nowcoder.com/questionTerminal/b1303e827e7f4df4a816598d008bbe72 这道题要用到并查集来解(Union-Find),这位网友总结的很详细:http://blog.csdn.net/dm_vincent/a ...
分类:其他好文   时间:2016-09-06 15:13:52    阅读次数:176
linux 删除指定日期之前的文件
两种方法: 1. 在一个目录中保留最近三个月的文件,三个月前的文件自动删除。 find /email/v2_bak -mtime +92 -type f -name *.mail[12] -exec rm -rf {} \;/email/v1_bak --设置查找的目录;-mtime +92 --设 ...
分类:系统相关   时间:2016-09-06 12:25:07    阅读次数:284
jquery实现table按时间排序
$(document).ready(function(){ sortTable();});var sortTable = function(){ $("#tableList").find("#cell_startDate").bind("click",function(){ var sortType ...
分类:编程语言   时间:2016-09-06 06:48:30    阅读次数:297
马哥linux第五周作业
1、显示当前系统上root、fedora或user1用户的默认shell;[root@mageedu~]#useraddfedora [root@mageedu~]#useradduser1 [root@mageedu~]#egrep"^(root|fedora|user1)"/etc/passwd|cut-d:-f1,7 root:/bin/bash fedora:/bin/bash user1:/bin/bas2、找出/etc/rc.d/init.d/function..
分类:系统相关   时间:2016-09-06 01:30:27    阅读次数:300
linux 删除!号
在linux中,可能会有错误的或恶意的程序创建包含无法打印的字符的目录。定位和重命名这些目录,这样就可以更容易地检查并删除它们。要完成该操作,您首先需要在ls中包含-i开关,以获取该目录的索引节点的数值。然后,使用find将索引节点的数值转换为一个可以使用mv命令进行重命..
分类:系统相关   时间:2016-09-06 01:26:37    阅读次数:195
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!