1. 在当前目录,所有的普通文件中搜索istester这个词 find ./ type f |xargs grep "istester" 2. 在当前目录,删除1天以内的所有东西 find ./ mtime 1 print | xargs rm rf 3. 在当前目录,删除10天以前的所有东西(实操 ...
分类:
系统相关 时间:
2020-03-28 00:57:34
阅读次数:
92
This time, you are supposed to find A×B where A and B are two polynomials. Input Specification: Each input file contains one test case. Each case occu ...
分类:
其他好文 时间:
2020-03-27 21:20:29
阅读次数:
79
648. 单词替换 难度中等49收藏分享切换为英文关注反馈 在英语中,我们有一个叫做 词根(root)的概念,它可以跟着其他一些词组成另一个较长的单词——我们称这个词为 继承词(successor)。例如,词根an,跟随着单词 other(其他),可以形成新的单词 another(另一个)。 现在, ...
分类:
其他好文 时间:
2020-03-27 19:50:20
阅读次数:
70
Problem : There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time com ...
分类:
其他好文 时间:
2020-03-27 18:31:14
阅读次数:
78
--删除某个目录下以*.csv结尾的文件 find /data -name "*.csv" | xargs rm --查看隐藏文件 ll -a --查看文件目录下内存分布 du --max-depth=1 -h --查看磁盘大小 df -h --查看内存总大小 top --编辑命令 vi +文件 i ...
分类:
系统相关 时间:
2020-03-27 15:35:49
阅读次数:
99
一、引入 最近一个python的定时任务系统的项目,在做定时数据统计的时候经常报错too many connections,字面意思很简单,就是数据库连接池不够用了。那么比较直接的方法就是手动设置数据库的最大连接数max_connections 二、如何配置 1.查询Mysql当前的最大连接数 my ...
分类:
数据库 时间:
2020-03-27 14:26:09
阅读次数:
115
find / -name a.txt : 从根目录下全局搜索a.txt文件 grep “error” test.log :从test.log中过滤出包含error的文本行 grep -A 10 "error" test.log :过滤制定数据,并展示后10行 grep -B 10 "error" t ...
分类:
系统相关 时间:
2020-03-27 12:58:44
阅读次数:
396
解题思路: 1、定义一个结构体,来存储二叉排序树 typedef struct { int data; int left; int right; int parent; int h; } T; 2、再定义一个结构体,将输入数据存入 typedef struct { int data; int pos ...
分类:
其他好文 时间:
2020-03-27 12:49:50
阅读次数:
125
1. ERROR Error: Cannot find module 'escape-string-regexp' ...
分类:
其他好文 时间:
2020-03-27 12:28:39
阅读次数:
52
力扣-面试题03. 数组中重复的数字 题目描述: 在一个长度为 n 的数组 nums 里的所有数字都在 0~n-1 的范围内。数组中某些数字是重复的,但不知道有几个数字重复了,也不知道每个数字重复了几次。请找出数组中任意一个重复的数字。 输入: [2,3,1,0,2,5,3] 输出: 2or3 1 ...
分类:
编程语言 时间:
2020-03-27 10:59:34
阅读次数:
71