例如包含userId的
awk -F '\t' '{for(i=1; i<=NF; i++){if ($i ~ /.*user_id.*/){print $i}}}'
[......]
打印log中某一列
Leave a reply
例如包含userId的
awk -F '\t' '{for(i=1; i<=NF; i++){if ($i ~ /.*user_id.*/){print $i}}}'
[......]
sort filename | uniq -c | sort -nr
[......]
首先要排序
#find lines only in file1
comm -23 file1 file2
#find lines only in file2
comm -13 file1 file2
#find lines common to both files
comm -12 file1 file2
[......]
byte[] -> int
int result = ByteBuffer.wrap(bytes).getInt();
int -> byte[]
byte[] bytes = ByteBuffer.allocate(4).putInt(1695609641).array();
[......]
GenericObjectPoolConfig poolConfig = new GenericObjectPoolConfig();
基本配置:
//最大连接
poolConfig.setMaxTotal(100);
//最大空闲连接
poolConfig.setMaxIdle(5);
//最小空闲连接
poolConfig.setMinIdle(5);
//连接满[......]