码迷,mamicode.com
首页 >  
搜索关键字:shell sed awk    ( 39625个结果
Nginx Windows详细安装部署教程
1、下载nginx包 直接去官网下载:http://nginx.org/en/download.html 2、下载完成后,在指定位置解压缩,不要直接双击nginx.exe。 3、运行cmd,进入解压的指定目录下 4、启动nginx服务,启动命令为:start nginx,启动时会一闪而过是正常的 5 ...
分类:Windows程序   时间:2021-04-23 11:54:40    阅读次数:0
linux shell if语句
1、测试1 [root@centos7 test2]# ls a.txt [root@centos7 test2]# if [ -e a.txt ]; then echo "exist";else echo "no nxist"; fi exist [root@centos7 test2]# if ...
分类:系统相关   时间:2021-04-23 11:53:02    阅读次数:0
linux shell脚本中流程控制语句 if 、for、while、case
linux shell脚本中流程控制语句 if、for、while、case 1、if语句 [root@centos7 test2]# ls test.sh [root@centos7 test2]# pwd /home/test2 [root@centos7 test2]# cat test.sh ...
分类:系统相关   时间:2021-04-22 16:20:40    阅读次数:0
Shell工具(cut,sed)
Shell工具 cut:可以切割提取指定列\字符\字节的数据 cut可以将文本按列进行划分的文本处理,cut命令逐行度入文本,然后按列划分字段并进行提取,输出等操作 选项参数: -f 提取范围 列号,获取第几列 -d 自定义分隔符 自定义分隔符,默认为制表符 -c 提取范围 以字符为单位进行分割 - ...
分类:系统相关   时间:2021-04-22 16:20:19    阅读次数:0
最长公共子序列lcs实现
def lcs(s1, s2): m = len(s1) # 记录s1长度 n = len(s2) # 记录s2长度 a = [[0 for j in range(n+1)]for i in range(m+1)] # 得分数组 b = [[0 for j in range(n+1)]for i i ...
分类:其他好文   时间:2021-04-22 16:14:26    阅读次数:0
统计tomcat的access日志
统计tomcat的access日志的ip次数,并按次数排序 awk '{sum[$1]++}END{for(i in sum) print i "\t" sum[i]}' localhost_access_log.* | sort -n -k2 统计某个接口的调用时间 awk '{if($7~/.* ...
分类:数据库   时间:2021-04-21 12:18:10    阅读次数:0
linux 监控服务器流量
linux 监控服务器流量 #!/bin/bash ethn=$1 while true do RX_pre=$(cat /proc/net/dev | grep $ethn | sed 's/:/ /g' | awk '{print $2}') TX_pre=$(cat /proc/net/dev ...
分类:系统相关   时间:2021-04-21 12:03:54    阅读次数:0
后台启动
直接用java -jar xxx.jar,当退出或关闭shell时,程序就会停止掉。以下方法可让jar运行后一直在后台运行。 1. java -jar xxx.jar & 说明: 在末尾加入 & 符号 2. (1)执行java -jar xxx.jar后 (2)ctrl+z 退出到控制台,执行 bg ...
分类:其他好文   时间:2021-04-21 11:58:31    阅读次数:0
shell 时间
#不要加空格 time1=$(date) echo $time1 > /tmp/output.txt ...
分类:系统相关   时间:2021-04-21 11:49:37    阅读次数:0
Mac下CoreShell使用lrzsz命令
Mac下Core Shell 使用lrzsz命令,上传,下载文件 新增~/.bashrc_Core_Shell # Bash support for Core Shell, reference: /etc/bashrc_Apple_Terminal on macOS # Report Working ...
分类:系统相关   时间:2021-04-20 15:02:28    阅读次数:0
39625条   上一页 1 ... 19 20 21 22 23 ... 3963 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!