1. find . -regex '.*\.c\|.*\.cc' | xargs grep "string" --color --line-number 2. sed -n '5,10p' filename 查看文件的第5行到第10行。 3. grep -o hello test.log | wc ...
分类:
其他好文 时间:
2021-04-27 15:16:42
阅读次数:
0
文件读写操作「c++」 #include <fstream> void test01() { //ofstream ofs("./test.txt",ios::out | ios::trunc); //后期指定打开方式 ofstream ofs; ofs.open("./test.txt",ios: ...
分类:
编程语言 时间:
2021-04-27 15:05:25
阅读次数:
0
java遍历文件 package com.vfsd.test; import java.io.File; import java.io.IOException; public class ListFileName { public static void main(String[] args) { ...
分类:
编程语言 时间:
2021-04-27 15:01:42
阅读次数:
0
本地邮箱告警配置 配置本地邮箱告警前,我们要用到mail命令 所以先安装mail命令 [root@mf ~]# yum -y install mailx 使用mail命令发送邮箱 [root@mf ~]# echo "test" | mail -s "20210426" 18808843007@16 ...
分类:
其他好文 时间:
2021-04-27 14:43:11
阅读次数:
0
MySQL spring.datasource.url=jdbc:mysql://localhost:3306/twitter_test?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8spring. ...
分类:
移动开发 时间:
2021-04-27 14:38:30
阅读次数:
0
vue打包时配置不同的环境变量(vue-cli4) 以配置测试环境test为例 1、在package.json文件中配置script文件 "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build", ...
分类:
其他好文 时间:
2021-04-27 14:20:31
阅读次数:
0
D. Explorer Space 一点一点把题目理顺。看看哪些是可以推断出来的。 对于 dp 的题目而言,要一点一点去分析其中什么东西是可以递推的,正如这道题中 \(dp[x][y][k]=min\{dp[xx][yy][k-1]+d[x][y][i]\}\) 然后再进行记忆化搜索即可。 // C ...
分类:
其他好文 时间:
2021-04-27 14:17:50
阅读次数:
0
参考 https://blog.csdn.net/Simon798/article/details/103161482 先上代码: // Test_Console.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include <afx.h> #includ ...
分类:
编程语言 时间:
2021-04-27 14:13:15
阅读次数:
0
参考网址:https://www.bejson.com (网站文件部分有坑,需要擦亮眼睛) nginx k8s版本:v1.20 apiVersion: apps/v1 kind: Deployment metadata: name: my-nginx namespace: test spec: re ...
分类:
其他好文 时间:
2021-04-26 14:08:07
阅读次数:
0
Flask API 登录 零、起因 最近要写uniapp客户端,服务器使用的是Python的Flask框架,为了实现用户登录,在网上查到了一些Flask的扩展,其中比较简单的就是flask_httpauth(此时版本__version__ = '4.2.1dev'),其官网给出的基本示例: from ...
分类:
编程语言 时间:
2021-04-26 13:14:41
阅读次数:
0