标签:col word sudo su port 操作 roc username .cpp use
find . -mtime +2 -type f -name "a.*" | xargs rm -f
sed -i ".bk" ‘/=.*);/ {s/)//g;}‘ a.txt
sed -i ".bk" ‘/ set.*(.*<.*> .*) {/ {s/> /> \&/g;}’ a.txt
awk ‘{if($1=="required"){i++; print i":", “optional”,$1, $2, $3, $4; }else{print $0}}‘ test
awk ‘{if($1!=“//"){i++; print i":", "optional",$1, $2, $3, $4; }else{print $0}}’ test
awk -F‘:‘ ‘BEGIN{i=21}{print i":",$2;i++}’ test
awk ‘BEGIN{i=1}{if($3=="list_str"){if($4!=""){print "\""$3, $1, i++, $4"\","}else{print "\""$3, $1, i++"\","}}}‘ test
diff -w a.txt b.txt | grep \^\<
输出a.txt里面有,但是b.txt里面不包含的文件内容1c1
< 10.103.18.107
---
> 10.103.18.10
16a17
> 10.120.53.5
18a20
> 10.126.13.19
22a25
> 10.126.33.18
24a28,29
> 10.136.127.23
> 10.136.128.17
25a31,32
> 10.136.132.22
> 10.136.133.42
find . -user username | xargs rm -rf
- redis-cli -h 127.0.0.1 -p 6379 -a username
- redis-cli -p 7380
- 登录后 info 命令
- ps aux | grep redis
- cd /etc; sudo /usr/bin/redis-server redis.conf
- /usr/bin/redis-server 127.0.0.1:6379
- 关闭redis:redis-cli shutdown
- 设置密码后需带密码输入: redis-cli -a [password],进入redis命令行后执行shutdown即可关闭redis,输入exit退出
- db.getCollection(‘cname‘).find({"_id":"id1"},{"field1":1})
- db.getCollection(‘cname‘).find({"field2":{$exists:true}})
标签:col word sudo su port 操作 roc username .cpp use
原文地址:https://www.cnblogs.com/wangzhiyi/p/10122378.html