代码改变世界

Bash 取字符串的最后 N 个字符 - ${str:0-N:LENGTH}

2021-10-11 10:49 by jetwill, 101 阅读, 0 推荐, 收藏, 编辑
摘要:Bash 取字符串的最后 N 个字符: ${str:0-N:LENGTH} or ${str:0-N} https://tldp.org/LDP/abs/html/string-manipulation.html > file_name=/app/xxx/yyy/zzz.20210915 > ech 阅读全文

PowerShell 之常用方法

2021-09-29 20:24 by jetwill, 199 阅读, 0 推荐, 收藏, 编辑
摘要:随笔分类 - 常用 【PowerShell】文件的解压与压缩 摘要:1 New-Item -ItemType File 1.txt -Force #新建文本文件 2 Compress-Archive -Path '1.txt' -DestinationPath '1.zip' -Force #压缩为 阅读全文

PowerShell 教程

2021-09-29 09:03 by jetwill, 230 阅读, 0 推荐, 收藏, 编辑
摘要:随笔分类 - 教程 转载自:https://www.cnblogs.com/XiaoCY/category/1065141.html PowerShell 管道符之Where-Object的使用方法 摘要:可以匹配到QQ为名的结果 阅读全文 PowerShell 【Switch篇】 摘要:如果你学过 阅读全文

PowerShell【变量篇】

2021-09-28 19:48 by jetwill, 98 阅读, 0 推荐, 收藏, 编辑
摘要:PS C:\Users\Administrator> $str='这是一个变量' PS C:\Users\Administrator> $str 这是一个变量 PS C:\Users\Administrator> $str='这是一个变量' PS C:\Users\Administrator> $s 阅读全文

golang strings.Split函数

2021-09-28 08:58 by jetwill, 420 阅读, 0 推荐, 收藏, 编辑
摘要:golang strings.Split函数 https://play.studygolang.com/ package main import ( "fmt" "strings" ) func main() { email := "abc@a.com" emailS := strings.Spli 阅读全文

Launch agent by connecting it to the master

2021-09-27 17:20 by jetwill, 169 阅读, 0 推荐, 收藏, 编辑
摘要:Jenkins Node 是 Windows, Jenkins Server 在 Linux C:\JenkinsAgent\start_jenkins_agent.bat java -DSoftKillWaitSeconds=0 -Djava.lang.string.substring.nocop 阅读全文

使用srvany.exe把程序安装成windows服务的方法

2021-09-27 16:13 by jetwill, 100 阅读, 0 推荐, 收藏, 编辑
摘要:http://mazhihui.iteye.com/blog/1294431 https://www.cnblogs.com/liuqiyun/p/9897396.html srvany.exe是什么? srvany.exe是Microsoft Windows Resource Kits工具集的一个 阅读全文

区别对待 .gz 文件 和 .tar.gz 文件

2021-09-22 17:47 by jetwill, 65 阅读, 0 推荐, 收藏, 编辑
摘要:#检测 tar tvf xxx.tar.gz #解压 tar zxvf #检测 gunzip -tv yyy.gz #解压 gunzip yyy.gz 阅读全文

go 使用 sort 对切片进行排序

2021-09-20 10:20 by jetwill, 808 阅读, 0 推荐, 收藏, 编辑
摘要:golang对slice的排序 golang里面需要使用sort包,并且实现几个接口Len, Swap, Less sort 包排序demo 假如现在有个slice 叫做 ids 里面保存的数据类型是int32 package main import ( "fmt" "sort" ) type In 阅读全文

Go数组遍历与排序

2021-09-19 17:51 by jetwill, 2764 阅读, 0 推荐, 收藏, 编辑
摘要:遍历数组 Go遍历数组有两种方式 1.按照数组下标进行遍历 2.用range遍历 package main import ( "fmt" ) func main() { // 声明数组 array := [...]string{"red", "yellow", "blue"} // 方法一:直接用数 阅读全文
上一页 1 2 3 4 5 6 7 8 9 10 ··· 20 下一页