文件:ggedit
路径:$HOME/ggscript
功能:该脚本用于选择使用其他脚本
通过alias别名初始化入.profile和.bash_profile文件,以edit指令方式使用
#!/bin/bash echo "Select an action you want to perform" select ch in "addtable" "addtrandata" "annotate" "reannotate" "search" "skiptrans" "exit" do case $ch in "addtable") cd $HOME/ggscript/gginsert exec ./insert.sh ;; "addtrandata") cd $HOME/ggscript/gginsert exec ./addtrandata.sh ;; "skiptrans") cd $HOME/ggscript/ggtrandata exec ./skiptrans.sh ;; "annotate") cd $HOME/ggscript/ggcomment exec ./comment.sh ;; "reannotate") cd $HOME/ggscript/ggcomment exec ./recomment.sh ;; "search") cd $HOME/ggscript/ggsearch exec ./search.sh ;; "exit") echo "process complete" break; ;; *) echo "Please select your choice :"1.addtable" "2.addtrandata" "3.annotate" "4.reannotate" "5.search" "6.skiptrans" "7.exit" " ;; esac done;
演示范例
$edit
Select an action you want to perform
1) addtable ---选择批量加表脚本
2) addtrandata---选择附加日志新增脚本
3) annotate ---选择批量注释脚本
4) reannotate –选择批量取消注释脚本
5) search --选择批量搜索脚本
6) skiptrans –选择长事务跳过脚本
7) exit –退出
#?
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。