Sub 插入() On Error GoTo errHandler Dim i As Long '按照标题插入空行For i = 2 To Range("A1").CurrentRegion.Count - 1Selection.End(xlDown).SelectSelection.EntireR ...
分类:
其他好文 时间:
2020-12-08 12:43:24
阅读次数:
4
批量操作Tomcat Shell脚本 #!/bin/bash tom="/opt/ronghelist" product=$1 usage="{gongcheng1|all} {start|stop|restart|status}" if [ "$1" == "" -o "$2" == "" ];t ...
分类:
系统相关 时间:
2020-12-08 12:39:01
阅读次数:
9
1、利用stream对数据进行分组并求和 public static void main(String[] args) { List<String> items = Arrays.asList("apple", "apple", "banana", "apple", "orange", "banan ...
分类:
编程语言 时间:
2020-12-07 12:34:17
阅读次数:
8
linux下查找文件中空行的行号 linux下查找文件中空行的行号 以aa.txt举例: 方法1:sed -n '/[a-zA-Z0-9@#$%^&*]/!=' aa.txt 方法2:grep -n ^$ aa.txt 方法3:awk '/^$/{print NR}' aa.txt 方法4:sed ...
分类:
系统相关 时间:
2020-12-07 12:22:19
阅读次数:
9
直接新建个文件即可 ExLogic.cs public class ExLogic { #region 对象转成字典 /// <summary> /// 对象转换为字典 /// </summary> /// <param name="obj">待转化的对象</param> /// <returns> ...
分类:
其他好文 时间:
2020-12-07 12:20:51
阅读次数:
7
思路:先将网卡和对应IP地址写入到文本,再根据输入的参数进行case判断#!/bin/basheths=/tmp/eths.txt#定义网卡文本路径eth_if=/tmp/eth_if.txt#定义网卡和对应IP地址的文本路径useage(){echo"pleaseinput:$0-inetworkcardor-Iipaddress."}#定义使用函数wrong_netcard(){if!awk-
分类:
其他好文 时间:
2020-12-07 12:10:20
阅读次数:
4
VB调用VC dll的返回方式 第一种类型:数值传递注意:在VB中,默认变量传递方式为ByRef为地址,而传递值就是用ByVal,还要注意在C++中,int类型的变量是32位的,在VB中要用long型变量来配合。VC++部分: [cpp] view plaincopy extern "C" _dec ...
分类:
其他好文 时间:
2020-12-07 11:58:08
阅读次数:
4
27 String类 底层实现 ? final的char数组 常用的加强版 StringBuffer 特点:线程安全、速度慢 StringBuilder 特点:线程不安全、速度快 出现的原因:解决String自行拼接以及反序麻烦等问题 加强版与String类型的转换 对象名.toString(); ...
分类:
其他好文 时间:
2020-12-05 10:52:08
阅读次数:
7
用sed命令怎么打印文件中的最后一行https://zhidao.baidu.com/question/1431848772803799419.html执行下面2个命令1、awk‘NF{a=$0}END{printa}‘file.txt2、sed‘/^$/!h;$!d;g‘file.txt在下载了一个大文件之后,需要对他进行拆分[root@uhadoop-mzwc2w-master2hadoop-
分类:
系统相关 时间:
2020-12-04 11:14:38
阅读次数:
10
文档:06TS函数参数和返回类型定义.md 链接:http://note.youdao.com/noteshare?id=f39e94434b0cd56044684f202a25c1b1&sub=2510D038AF084E29B0E00561FA97FC15 ...
分类:
其他好文 时间:
2020-12-04 11:05:01
阅读次数:
4