码迷,mamicode.com
首页 >  
搜索关键字:awk sed    ( 13063个结果
背包dp(多重)
http://acm.hdu.edu.cn/showproblem.php?pid=1059 多重背包题; 如果sum奇数直接continue;不是奇数则判断dp[sum/2]能不能到达; 即dp[sum/2]的方案数是否为0; 注意输出格式!!! 1 #include<bits/stdc++.h> ...
分类:其他好文   时间:2020-07-05 22:54:20    阅读次数:81
脚本基本函数
运行时间定义: starttime=`date +%s -d '2010-01-01 17:23:40'` endtime=`date +%s -d '2010-01-01 15:01:47'` time=`echo $(($endtime - $starttime)) | awk '{t=spli ...
分类:其他好文   时间:2020-07-05 18:56:18    阅读次数:52
求不同的子串种类
题:http://hihocoder.com/problemset/problem/1445 分析:后缀自动机模板 #include<iostream> #include<algorithm> #include<cstring> #include<cstdio> using namespace st ...
分类:其他好文   时间:2020-07-05 15:17:04    阅读次数:69
kube-flannel.yml 修改quay.io镜像地址解决flannel Init:ImagePullBackOff错误
在安装k8s过程中,执行kubectl apply -f kube-flannel.yml,会出现flannel Init:ImagePullBackOff错误,原因是quay.io镜像地址在国内访问不了,执行命令 sed -i 's/quay.io/quay-mirror.qiniu.com/' ...
分类:其他好文   时间:2020-07-05 10:35:19    阅读次数:281
Linux 递归修改后缀名
1修改命令需要用到:findawkxargs递归修改命令如下:find.-name‘*.XXX‘|awk-F"."‘{print$2}‘|xargs-i-tmv./{}.XXX./{}.XXXX把XXX后缀修改为XXXX。2findfind用来在指定目录下查找文件,位于参数之前的字符串都被视为需要查找的目录。find.-name‘*.XXX‘中:.表示当前文件夹-name表示文件名
分类:系统相关   时间:2020-07-05 00:23:12    阅读次数:87
JSX本质
1.JSX的使用 class JSXBaseDemo extends React.Component { constructor(props) { super(props) this.state = { name: 'xiaoming', imgUrl: 'https://img1.mukewang ...
分类:Web程序   时间:2020-07-04 20:48:13    阅读次数:84
awk命令详解
free -h|awk 'NR==2' 396 free -h|awk 'NR==3' 397 free -h|awk 'NR==2{print $NF}' 398 free -h|awk 'NR==2{print $NF,$2}' 399 free -h|awk 'NR==2{print $NF/ ...
分类:其他好文   时间:2020-07-04 20:24:12    阅读次数:47
shell其他
一.输入重定向 和输出重定向一样,Unix 命令也可以从文件获取输入,语法为: command < file 这样,本来需要从键盘获取输入的命令会转移到文件读取内容。 注意:输出重定向是大于号(>),输入重定向是小于号(<)。 例如,计算 users 文件中的行数,可以使用下面的命令: wc -l ...
分类:系统相关   时间:2020-07-04 13:16:18    阅读次数:87
Linux命令
AWK 1、以冒号分割打印passwd文件中的第三列:awk -F ':' '{print $3}' /etc/passwd 2、以冒号分割打印passwd文件中的第一和三列:awk -F ':' '{print $1,$3}' /etc/passwd 注释:可采用printf函数格式化输出,也可用 ...
分类:系统相关   时间:2020-07-04 13:08:05    阅读次数:72
完美解决 python ImportError: Failed to import any qt binding
问题背景 在ContOS服务器上测试项目 解决方案 谷歌查询 解决步骤 降低matplotlib版本至2.2.2 pip3 install matplotlib==2.2.2 出现新的问题,ImportError: Matplotlib qt-based backends require an ex ...
分类:编程语言   时间:2020-07-03 23:38:57    阅读次数:347
13063条   上一页 1 ... 45 46 47 48 49 ... 1307 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!