#!/bin/bash config_file='xxxxx' tmp_file=/tmp/tempfile.$$ function usage() { cat <<! usage: $(basename $0) options options aaa switch to aaa bbb switch to bbb ccc switch to ccc ! exit 9 } cmd=$1 if [ $# -eq 0 ]; then echo Required parameter '"'Environment'"' not set exit 1 usage fi if [ "$cmd" = "aaa" ]; then cd ~/test/aaa/ cp $config_file $tmp_file url="xxxxxxxxxxxxxx" sed -i -e s/xxxxxxxxxx=.*/$url/ $tmp_file cp $tmp_file $config_file fi if [ "$cmd" = "bbb" ]; then cd ~/test/bbb/ cp $config_file $tmp_file sed -i -e "s/shouldLogSql = System.properties.containsKey(\"logSql\")/shouldLogSql = true/" $tmp_file cp $tmp_file $config_file fi if [ "$cmd" = "ccc" ]; then cd ~/test/ccc/ cp $config_file $tmp_file if grep "getEnvironment()\.toLowerCase()" $tmp_file; then sed -i -e "s/getEnvironment()\.toLowerCase()/\"apac\"/" $tmp_file fi cp $tmp_file $config_file fi
相关推荐
bash手册man 1 hostname 查看hostname命令手册页中第1部分 可执行程序或shell命令 的内容hostname info man手册页不
在Notes目录(默认为/ home / $ USER / Documents / Notes)的编辑器(默认为gedit)中打开一个名为note-DD_MM_YY-hh:mm.txt的txt文件。 安装说明: git clone https://github.com/sylvan-c/Notes cd Notes chmod...
workflow-notes:AWS Bash Cassandra Conda Docker Heroku Pandas SQL PySpark Python uWSGI上的注释
CHAPTER 8: THE BOURNE AGAIN SHELL (bash) CHAPTER 9: THE TC SHELL (tcsh) PART IV: PROGRAMMING TOOLS CHAPTER 10: PROGRAMMING THE BOURNE AGAIN SHELL (bash) CHAPTER 11: THE PERL SCRIPTING LANGUAGE ...
Shell. │ └── bash-commands : Some of the most popular Bash commands! │ ├── c │ ├── HackerRank : Notes for solving HackerRank problems │ └── InterviewCake : Notes for solving ...
Linux命令行及bash相关的笔记坑挖好了, 开始填:)这是我的笔记梳理, 删掉旧版本, 重新梳理中.....doing当前进度: 20%基于系统: centos 6.5参考书目鸟哥Linux私房菜Linux与Unix Shell编程指南Linux Shell脚本攻略概要...
自定义您的shell提示。 对任何炮弹的提示音极小,快速,可无限自定义! 您希望Mac随附的终端。 发展历程 代码审查 我的建议是使有关代码检查的所有信息(格式,语法,安全性检查,许可证检查...)自动化。 以下是...
bash,shell shBrushBash.js -- ColdFusion 冷融 shBrushColdFusion.js -- C 则 shBrushCpp.js -- C# c#,c-sharp,csharp shBrushCSharp.js -- CSS CSS shBrushCss.js -- 德尔斐 德尔福,帕斯卡...
bash课程:海德堡大学高级bash脚本课程的资料
从缓冲区运行bash(或任何shell)命令 :%!bash 将文本文件转换为pdf(通过ps) $ vim filename.txt -c " hardcopy > filename.ps | q " ; pstopdf filename.ps pstopdf可能是其他操作系统上的名称ps2pdf 替代撤消...
学校笔记 要构建,您需要: Pandoc(使用LaTeX) pp Graphviz bash,grep,sed,sort,uniq,date等 如果构建失败,则可能是因为您没有足够的RAM。 您可以注释掉循环中的&符号,以强制顺序构建。
编程( Python,Ruby,Shell脚本)等等。 ...您可以在阅读完整的文档 :copyright: 使用的工具: reStructuredText(RST): 用于写入.rst文件以呈现格式。 您可以通过方法开始学习 狮身人面像: 引擎以HTML,...
Voice Lab Experience Notes: Service Parameter Changes: BASCHEMPU1720 memorize BASH (unix shell add a c in the middle) EMPU (electromagnetic pulse) and 1720 B - B Channel MGCP / BRQ for Gatekeeper...
1.自定义变量 2.环境变量 3.预设变量
注意,如果被替换的命令的输出内容包括多行(也即有换行符),或者含有多个连续的空白符,那么在输出变量时应该将变量用双引号包围,否则系统会使用默认的空白符来填充,这
Shell基础知识和脚本适用于所有人的有用的Shell基础知识和脚本话题 回声 变数 如果别的 循环 脚本(2个或更多)语言能力1个 :United_Kingdom: 2个 :Turkey:
Advanced Bash-Scripting Guide 高级Bash脚本编程指南>> 一本深入学习shell脚本艺术的书籍 非常好的书 强烈推荐 附有超多实例 Advanced Bash-Scripting Guide.......................................................
一个简单的shell脚本,用于管理您的随机每日笔记。 每次您运行note.sh它都会打开当天的Markdown文件。 例如,如果今天是2020年12月2日,它将在notes目录中创建一个名为2020-12-02.md的Markdown文件。 该脚本受到极...
bash 脚本的集合,用于跟踪我写了多少行和他们的语言 计算每种语言在我的工作区目录中的代码行数,将结果格式化为 ./results/languages.json 下的 json 还显示了以下统计信息:(在 ./results/stats.json 下) 与...
bash或zsh自动补全 用法 建立 TLDR: Get `daily-notes`, create your note folder and call the setup script Change path to fit your needs or keep them as-is. 循序渐进 创建您的笔记文件夹 mkdir -p $HOME/.my...