Reference: http://saiyaren.iteye.com/blog/1943207 1. Shell 读取文件和写文件 for line in $(<top30000.url.utf-8.http_server_front_hphp.txt); do tmp_port=8080; for((i=0;i<=7;i++));do echo ${line/192\.168\.12\.63/192\.168\.12\.63:$tmp_port} >>top3000
字符串分割后的值,把表中不存在的插入表中 --供大家参考 使用场景,自行思考…… --创建表tb1 Create table tb1 ( cola int, colb ) ) --插入数据 insert into tb1(cola,colb) , 'A' union all , 'B' union all , 'C'; --存储过程 Create proc sp_tbTest @sid int,--ID )--A,B,C,D,G AS BEGIN insert into tb1(cola,col
package com.wangcf; /** * 把字符串"3,1,2,4"以","分割拆分为数组,数组元素并按从小到大的顺序排列 * @author fan * */ public class Test{ /** * 冒泡排序 * @param s * @return */ public int[] paixu(int[] s){ for (int i=s.length; i >0; i--) { int tem; for (int j = 0; j &l