#!/bin/shFILES=""TRCASE=""EXT=""OPT=no#gets called when a conversion failserror_msg(){_FILENAME=$1echo "`basename $0`:Error the conversion failed on $_FILENAME"}if [ $# -eq 0 ]then echo "For more info try `basename $0` --help" exit 1fiwhile [ $# -gt
觀察Oracle資料庫效能,Oracle內建的awr 功能為我們提供了一個近乎完美的解決方案,通過awr特性我們可以隨時從資料庫提取awr報告。不過awrrpt.sql指令碼執行時需要我們提供一些互動資訊,因此可以將其整合到shell指令碼中來實現自動產生指定時段的awr報告並發送給相關人員。本文即是描述linux shell指令碼來實現此功能。 1、shell指令碼robin@SZDB:~/dba_scripts/custom/awr> more
Berkeley DB XML Shell常用命令使用執行個體作者:gobitan(雨水) 日期:2007-04-04 轉載請註明出處http://blog.csdn.net/gobitan 建立容器createContainer book 向容器中加入文檔(可以在一個容器中放入多個文檔,但每次只能放入一個文檔)putDocument book1.xml '<bookList> <book> <name>Berkeley DB XML
一個簡單的例子:#!/bin/bashecho "What's your favourite star?"select var in "Leehom" "Vae" "Jay" "Jolin"; dobreak;doneecho "You have selected $var"運行結果:root@ubuntu:~# ./star.shWhat's your favourite star?1) Leehom2) Vae3) Jay4) Jolin#? 1You have selected
1 if #!/bin/bashecho "Please chose your favourite fruit:";select fruit in "apple" "orange" "banana" "none";dobreak;done;if [ $fruit == "apple" ] then echo "you like apple!"elif [ $fruit == "orange" ] then echo "you like orange!"elif [ $fruit ==
先看一個例子:#!/bin/basharea2=(zero one two three four)echo "Origin is :"echo ${area2[0]} ${area2[1]} ${area2[2]} ${area2[3]} ${area2[4]}area2[1]=1area2[4]=4echo "After is :"echo ${area2[0]} ${area2[1]} ${area2[2]} ${area2[3]} ${area2[4]}echo