原文连接:http://www.ruanyifeng.com/blog/2018/11/awk.html awk是处理文本文件的一个应用程序,几乎所有 Linux 系统都自带这个程序。 它依次处理文件的每一行,并读取里面的每一个字段。对于日志、CSV 那样的每行格式相同的文本文件,awk可能是最方便... ...
分类:
其他好文 时间:
2020-03-17 14:06:19
阅读次数:
53
location / { root C:\skyland\RS\Web\RS-Server\dist; index login.html; } location ~ ^/mediaUrl { proxy_pass http://192.168.19.202:9003; } ...
分类:
其他好文 时间:
2020-03-16 14:29:43
阅读次数:
46
在JDBC中使用ResultSet查询SQL语句 执行查询SQL语句 步骤 1 : 查询语句 executeQuery 执行SQL查询语句 注意: 在取第二列的数据的时候,用的是rs.get(2) ,而不是get(1). 这个是整个Java自带的api里 唯二 的地方,使用 基1 的,即2就代表第二 ...
分类:
数据库 时间:
2020-03-15 09:40:41
阅读次数:
64
很好的打基础资料 http://mingxinglai.com/cn/2013/12/material of shell/ https://www.zhihu.com/question/19745611 ...
分类:
系统相关 时间:
2020-03-14 21:42:37
阅读次数:
53
rem是根本根元素,也就是html的字体大小来计算被定义元素的大小,而根元素的字体大小取绝于屏幕宽度,相应的JS代码: (function (doc, win) { var fs = document.body.clientWidth / 750 * 28; fs = fs > 24 ? 24 : ...
分类:
移动开发 时间:
2020-03-14 19:54:31
阅读次数:
67
1、编写脚本/root/bin/checkip.sh,每5分钟检查一次,如果发现通过ssh登录失败次数超过10次,自动将此远程IP放入TcpWrapper的黑名单中予以禁止防问#!/bin/bashwhiletrue;doawk‘/Failed/{ip[$11]++}END{for(iinip){if(ip[i]>4){system("echosshd:"i&qu
分类:
其他好文 时间:
2020-03-13 11:28:14
阅读次数:
59
错误的开始是。。。。我点击了电脑开始配置。。。。后面是错误的一些垃圾记录 a.先建立好模型 (1/选择Console线,PC Switch分别选择RS 232 Console端口) (2/选择Copper Straight-Through,PC Switch分别选择 FastEthernet Fas ...
分类:
其他好文 时间:
2020-03-12 23:41:42
阅读次数:
79
git log --pretty=tformat: --numstat | awk '{ add += $1; del += $2; tot += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\ ...
分类:
其他好文 时间:
2020-03-12 18:44:40
阅读次数:
82
一、ORACLE里锁有以下几种模式: 0:none 1:null 空 2:Row-S 行共享(RS):共享表锁 3:Row-X 行专用(RX):用于行的修改 4:Share 共享锁(S):阻止其他DML操作 5:S/Row-X 共享行专用(SRX):阻止其他事务操作 6:exclusive 专用(X ...
分类:
数据库 时间:
2020-03-12 12:42:20
阅读次数:
79
```import statfrom tkinter.filedialog import *def traversal_dir(dir_name): rets = [] try: if len(dir_name): for r, ds, fs in os.walk(dir_name): for i1... ...
分类:
编程语言 时间:
2020-03-11 01:23:23
阅读次数:
82