随笔分类 - shell编程实例
shell 编程的一些实例代码
摘要:initDSRProject.sh #!/usr/bin/bash # load utils . ./util/utils.sh . ./util/fileUtils.sh . ./util/gitUtils.sh # set project related info projectName="ro
阅读全文
摘要:syncMockJson.sh #!/usr/bin/bash # load utils . ./util/utils.sh . ./util/fileUtils.sh . ./util/gitUtils.sh # config directory, file path and branch ###
阅读全文
摘要:shell-dsr/cron.sh #!/usr/bin/bash # execute shell script ################################################### # load utils . ./util/utils.sh declare -A
阅读全文
摘要:shell-dsr/utils.sh #!/usr/bin/bash # echo message with color ######################################################## function echoError { echo -e "\0
阅读全文
摘要:shell-dsr/updateVersionFlow.sh #!/usr/bin/bash # get current pwd pwd=$PWD # sync mock json for mc # . ./syncMockJson.sh declare -A versionDic versionD
阅读全文
摘要:~/.bashrc # change cursor alias cl='echo -ne "\e[6 q"' alias cb='echo -ne "\e[2 q"' # set bash command line as vi mode # set -o vi # set CDPATH enviro
阅读全文
摘要:Start run project when run script start-work.sh #!/usr/bin/bash # start work . ~/utils.sh # jump to work directory uiProject=/c/project/path/ if [ -d
阅读全文
摘要:1. Introduction This is a simple tool for convert a long english sentence format to a nls key. 2. Install $ ./install.sh Open the git bash under the t
阅读全文