码迷,mamicode.com
首页 >  
搜索关键字:find pg grep sed awk    ( 46448个结果
[leetcode] Best Time to Buy and Sell Stock II
Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete a...
分类:其他好文   时间:2014-05-06 00:51:29    阅读次数:353
linux 下查找大于100M的文件
命令行如下find . -type f -size +1000000kLinux系统下查找大文件或目录的技巧当硬盘空间不够时,我们就很关心哪些目录或文件比较大,看看能否干掉一些了,怎么才能知道呢? #已易读的格式显示指定目录或文件的大小,-s选项指定对于目录不详细显示每个子目录或文件的大小 du.....
分类:系统相关   时间:2014-05-06 00:39:57    阅读次数:504
Leetcode | Longest Consecutive Sequence
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given [100, 4, 200, 1, 3, 2],The longest...
分类:其他好文   时间:2014-05-05 23:01:41    阅读次数:374
并查集类的c++封装,比较union_find algorithm四种实现方法之间的性能差别
并查集类的c++封装,比较union_find algorithm四种实现方法之间的性能差别...
分类:编程语言   时间:2014-05-05 21:25:44    阅读次数:324
[leetcode] Best Time to Buy and Sell Stock III
Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete a...
分类:其他好文   时间:2014-05-03 23:21:20    阅读次数:292
PYTHON包安装时发生Unable to find vcvarsall.bat的解决办法
今天遇到了这个方面的问题,目前找到两种办法。一种是换编译器如mingw,另一种是装vc。第一种方法没成功,现在正在等第二种。 第一种: 首先安装MinGW; 把MinGW的路径添加到环境变量path中,比如MinGW安装在D:\MinGW\中,就把D:\MinGW\bin添加到path中; 打开命令...
分类:编程语言   时间:2014-05-03 23:20:29    阅读次数:363
JQuery_2.1.0_日记 5.2
$.方法 (1)$.merge(first, second)     合并两个数组或类数组,将第二个数组添加到第一个数组的末尾 (2)$.grep(elems, callback, invert)     使用callback对elems进行过滤,如果invert设置为true.则返回保留callback返回值为false的元素数组,如果invert设置为false则返回c...
分类:Web程序   时间:2014-05-03 16:37:05    阅读次数:333
Linux系统优化脚本
#!/bin/bash#thisscriptisonlyforCentOS6#checktheOSplatform=`uname-i`if[$platform!="x86_64"];thenecho"thisscriptisonlyfor64bitOperatingSystem!"exit1fiecho"theplatformisok"version=`lsb_release-r|awk‘{printsubstr($2,1,1)}‘`if[$version!=6];thenecho"thisscriptiso..
分类:系统相关   时间:2014-05-03 14:51:00    阅读次数:415
Ubuntu Server 14.04 配置ssh登录
Linux服务器限制ssh登录,查看登录日志1.查看端口占用情况$sudosu #lsof-i:<NUM> netstat-apn|grep<NUM>2.修改默认端口号22/etc/ssh/sshd_configPort22最好先添加一个端口号,然后启用成功之后再关闭端口22。然后重启sshd:sudo/etc/init.d/sshrestart没有反应,使..
分类:其他好文   时间:2014-05-03 14:43:53    阅读次数:403
正则表达式
一、grep的用法:grep:goloballysearchforaregularexpressionandprinttheresults1,作用:Linux中grep的功能就是进行字符串数据的对比,然后将符合用户需求的字符串打印出来。2,格式:grep[options]3,常见参数:.:任意单个字符;*:紧挨在其前面的字符任意次,可以为0;^:锚定..
分类:其他好文   时间:2014-05-03 14:39:22    阅读次数:306
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!