码迷,mamicode.com
首页 >  
搜索关键字:awk sort    ( 17174个结果)
交换排序
java实现package sort;public class SwapSort { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated m...
分类:其他好文   时间:2014-10-02 18:15:13    阅读次数:137
堆排序
package sort;public class CheapSort { public static final int MAX=10; public static void main(String[] args){ int []a={0,16,7,3,2...
分类:其他好文   时间:2014-10-02 17:25:33    阅读次数:181
选择排序
java实现package sort;public class SelectSort { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated...
分类:其他好文   时间:2014-10-02 17:02:03    阅读次数:196
插入排序
java实现:package sort;public class InsertSort { public static void main(String[] args) { int[] arr={70,80,31,37,10,1,48,60,33,80};...
分类:其他好文   时间:2014-10-02 15:54:13    阅读次数:183
Use sed and awk to prettify json
$ cat prettify.sed s/,/,\r\n/gs/\[/\r\n\[\r\n/gs/\]/\r\n\]\r\n/gs/{/\r\n{\r\n/gs/}/\r\n}\r\n/g$ cat prettify.awk BEGIN{ depth = 0;}/\[/ { sp...
分类:Web程序   时间:2014-10-01 23:40:51    阅读次数:255
Collection_Compare
冒泡 package com.bjsxt.sort.bubble; import java.util.Arrays; public class BubbleSort1 { /** * @param args */ public static void main(String[] args) { in...
分类:其他好文   时间:2014-10-01 20:54:42    阅读次数:254
zabbix监控varnish(shell)
#!/bin/bash /usr/local/bin/varnishstat-1>/tmp/varnish.$$ awk‘{ printf("%s:%s",$1,$2) }‘/tmp/varnish.$$ rm-rf/tmp/varnish.$$Usage:Asrootsetupacronjob:*****/usr/local/varnish/bin/varnishstat-1>/tmp/varnishstatAddanuserparametertozabbix:UserParameter=..
分类:其他好文   时间:2014-10-01 01:30:20    阅读次数:245
Quick-sort
brief : the quick sort can divide into two steps, the first step is partition, the second step is conquer the subset.i) as the first step, array A[lef...
分类:其他好文   时间:2014-10-01 01:21:50    阅读次数:209
zabbix监控mysql
默认mysql监控模版安装方法:vim/usr/local/etc/zabbix_agentd.confUserParameter=mysql.ping,mysqladminping|grep-caliveUserParameter=mysql.version,mysql-VUserParameter=mysql.status[*],echo"showglobalstatuswhereVariable_name=‘$1‘;"|mysql-N-uroot|awk‘{print$$2}‘Us..
分类:数据库   时间:2014-10-01 00:40:50    阅读次数:274
zabbix监控磁盘I/O
zabbix_agentd.confUserParameter=custom.vfs.dev.read.ops[*],cat/proc/diskstats|grep$1|head-1|awk‘{print$$4}‘UserParameter=custom.vfs.dev.read.ms[*],cat/proc/diskstats|grep$1|head-1|awk‘{print$$7}‘UserParameter=custom.vfs.dev.write.ops[*],cat/proc/diskstats|g..
分类:其他好文   时间:2014-10-01 00:40:10    阅读次数:452
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!