码迷,mamicode.com
首页 >  
搜索关键字:find grep xargs    ( 34906个结果
Shell判断文件存在,rsync命令
判断文件夹是否存在if[!-d"target"];thenmkdirtargetfi判断能否删除文件夹if[-x"target"];thenrm-rftarget/*fi查找出所有.apk的文件,并签名forfilein$(ls./|grep.apk$)do[!-d$file]&&echo$file签名中...doneecho‘签名后的文件在当前目录的target目录下‘basep
分类:系统相关   时间:2020-12-23 12:05:04    阅读次数:0
抖音时钟效果源码
效果展示: 1、在桌面右键-新建-文本文档 2、复制代码并保存 <!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, in ...
分类:其他好文   时间:2020-12-23 11:51:46    阅读次数:0
安装mysql 5.*
sudo apt-get update sudo apt-get install mysql-server #服务启动后端口查询 sudo netstat -anp | grep mysql #服务管理 #启动 sudo service mysql start #停止 sudo service my ...
分类:数据库   时间:2020-12-23 11:37:29    阅读次数:0
Ubuntu 彻底卸载 MySQL 数据库
Ubuntu 18.04 彻底卸载MySQL 5.7.31 1. 查看MySQL的依赖项 dpkg --list|grep mysql 2. 卸载 mysql-common sudo apt remove mysql-common 3. 卸载 mysql-server sudo apt autore ...
分类:数据库   时间:2020-12-22 13:13:25    阅读次数:0
HDU-4370 0 or 1
Problem Description Given a nn matrix Cij (1<=i,j<=n),We want to find a nn matrix Xij (1<=i,j<=n),which is 0 or 1. Besides,Xij meets the following con ...
分类:其他好文   时间:2020-12-21 12:00:49    阅读次数:0
grep命令
grep命令 grep命令用于查找文件里符合条件的字符串,如果发现某文件的内容符合所指定的模式,grep命令会把含有模式的那一行显示出来。若不指定任何文件名称,或是所给予的文件名为-,则grep指令会从标准输入设备读取数据。 语法 grep [OPTION]... PATTERN [FILE]... ...
分类:其他好文   时间:2020-12-21 11:47:01    阅读次数:0
CST8221–JA
CST8221–JAP,Assignment 2, Part 2,MMXX Page 1 of 9Assignment 2 part 2: Othello Networking Value: 8% of your overall grade.Due date: December 13th (Sund ...
分类:其他好文   时间:2020-12-21 11:02:31    阅读次数:0
linux 下排查故障命令
ps -aux |grep dbsync ll 查看当前文件 ps -aux |grep dbsync 查看日志 [root@yanbianxian dbsync_danxiang]# ./DbSync_danx_cmd.jar config.ini -bash: ./DbSync_danx_cmd ...
分类:系统相关   时间:2020-12-19 13:31:50    阅读次数:5
find函数
1.find() 返回值为目标元素的下标,若不存在目标元素则返回-1 #include<iostream> using namespace std; int main() { string str1 = "A BC", str2 = "abc"; char c = '5'; int i; i= st ...
分类:其他好文   时间:2020-12-19 13:09:58    阅读次数:2
第三周练习
练习:1、显示/etc目录下,以非字母开头,后面跟了一个字母以及其它任意长度任意字符的文件或目录ls/etc/[^[:alpha:]]*2、复制/etc目录下所有以p开头,以非数字结尾的文件或目录到/tmp/mytest1目录中mkdir/tmp/mytest1;ls/etc/*|egrep‘^p.*[^0-9]$‘|xargs-icp-r{}/tmp/mytest13、将/etc/issue文件
分类:其他好文   时间:2020-12-18 13:10:43    阅读次数:3
34906条   上一页 1 ... 34 35 36 37 38 ... 3491 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!