摘要:
1.shell中for循环语法: for L_PROJECT in $(ssh -p xxxx xxx.xxx.xxx gerrit ls-projects); do echo ${L_PROJECT} ssh -p xxxx xxx.xxx.xxx gerrit set-project ${L_P 阅读全文
摘要:
https://gcc.gnu.org/bugzilla/ 阅读全文
摘要:
Gerrit 3.x rewrite Since Gerrit 3.x NoteDb replaced the SQL database and all metadata is now stored in Git. The user interface migrated away from GWT 阅读全文
摘要:
1.xargs命令可以使用-I选项指定一个替换字符串,xargs会用读取到的参数替换掉这个替换字符串。 :~/work/test$ ls *.txt | xargs -I{} cp {} /tmp/ :~/work/test$ ls *.txt | xargs -I{} ls {} 1.txt 2. 阅读全文
摘要:
一、echo用法: echo使用说明: echo命令支持-e选项,使用该选项可以让echo命令识别\后面的转义符号含义,常见转义符号如表1-1所示。其中\033或\e后面可以跟终端编码,终端编码可以用于定义终端的字体颜色、背景颜色、定位光标等。 ①使用echo命令编写一个更有趣的脚本文件菜单! #! 阅读全文
摘要:
一、数据库DB文件的备份: ①Postgresql数据库导出 ②#快速增量备份数据库文件 #!/bin/bash pg_dump -h localhost -U postgres -p 5433 reviewdb|gzip > "`date +%Y%m%d%H%M%S`".db.gz rsync - 阅读全文
摘要:
Jenkins REST API https://www.jenkins.io/doc/book/using/remote-access-api/ Jenkins provides machine-consumable remote access API to its functionalities 阅读全文
摘要:
Linux find 命令用来在指定目录下查找文件。任何位于参数之前的字符串都将被视为欲查找的目录名。如果使用该命令时,不设置任何参数,则 find 命令将在当前目录下查找子目录与文件。并且将查找到的子目录和文件全部进行显示。 语法: find path -option [ -print ] [ - 阅读全文
摘要:
方式一 install前加-y sudo apt-get -y install uuid-dev 方式二 yes | sudo ufw enable 阅读全文
摘要:
更新Ubuntu镜像源 1.备份镜像源:/etc/apt/sources.list sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup 2.更新镜像源(不更新upgrade特别慢) cat /etc/apt/sources.list 阅读全文