call plug#begin('~/.vim/plugged')""Plug 'itchyny/lightline.vim'"Plug 'Yggdroot/LeaderF', { 'dir': '~/LeaderF', 'do': './install --all' }" Plug 'junegu ...
分类:
系统相关 时间:
2021-03-01 13:04:40
阅读次数:
0
一、流程控制 while循环:只要条件满足一直循环 read -p "请输入一个数字:" white_data while [ ${white_data} -lt 20 ] do echo ${white_data} white_data=$((white_data + 1)) done until ...
分类:
系统相关 时间:
2021-02-27 13:22:57
阅读次数:
0
题目要求 用shell实现,把一个文本文档中只有一个数字的行给打印出来。 参考答案 #!/bin/bash while read line do n=`echo $line |sed 's/[^0-9]//g'|wc -L` if [ $n -eq 1 ] then echo $line fi do ...
分类:
其他好文 时间:
2021-02-27 13:00:32
阅读次数:
0
题目要求 写一个shell脚本,把192.168.0.0/24网段在线的ip列出来。 参考答案 #!/bin/bash for i in `seq 1 254` do if ping -c 2 -W 2 192.168.0.$i >/dev/null 2>/dev/null then echo "1 ...
分类:
其他好文 时间:
2021-02-27 12:59:19
阅读次数:
0
题目要求 输入一串随机数字,然后按千分位输出。 比如输入数字串为“123456789”,输出为123,456,789。 参考答案 #!/bin/bash n=`echo $1|wc -L` for d in `echo $1|sed 's/./& /g'` do n2=$[$n%3] if [ $n ...
分类:
其他好文 时间:
2021-02-27 12:58:28
阅读次数:
0
//观察者模式 //监听对象属性的修改,如果属性值发生变化,打印出对象的属性信息(to do somthing) let queuedObservers = new Set() //将需要处理的函数,添加到set结构中 let observe = fn => queuedObservers.add( ...
分类:
其他好文 时间:
2021-02-26 13:24:00
阅读次数:
0
@echo on For /f "tokens=*" %%i in ('dir /a-d /b /s "*.exe"') do ( D:\RuanJian\Qt\Qt5.14.2\5.14.2\msvc2017_64\bin\windeployqt.exe "%%i" --debug)Pause P ...
分类:
其他好文 时间:
2021-02-24 13:10:34
阅读次数:
0
主要是这两个sql start_log(利用get_json_object函数): insert overwrite table "$app".dwd_start_log PARTITION (dt='$do_date') select get_json_object(line,'$.mid') m ...
分类:
数据库 时间:
2021-02-23 14:36:54
阅读次数:
0
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv ...
分类:
其他好文 时间:
2021-02-23 14:31:40
阅读次数:
0
1) 提交容器 docker commit a777d78c6780 newtomcat8:1.0 docker commit 容器id 新镜像名称:版本号 注意:镜像名称要小写 2) 将容器转成压缩文件 docker save -o newtomcat8.tar newtomcat8:1.0 do ...
分类:
其他好文 时间:
2021-02-23 14:18:47
阅读次数:
0