您好,登錄后才能下訂單哦!
文件: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進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。