您好,登錄后才能下訂單哦!
文件: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 –選擇長事務(wù)跳過腳本
7) exit –退出
#?
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。