#!/bin/ksh # # Scriptname : $II_SYSTEM/ingres/scripts/db_size.ksh # # Description : Checks the size of all databases on a given installation. # # Parameters : None. # # Author : M S Ramsay 26 June 1997 # # History Date Name Reason # ---- ---- ------ # 19/05/98 MSR -s flag no longer required (OpenIngres) # 10/11/98 MSR Amended to use awk for the arithmetic # ############################################################################ # #Parameter validation # SDS_scriptname="`basename $0`" SDS_help=$1 if [[ $SDS_help != '' ]] && [[ $SDS_help != 'h' ]] then echo "Error in script $SDS_scriptname - Parameter invalid" echo "" echo "Try:-" echo "" echo "h - Help" echo "" exit fi if [[ $SDS_help = 'h' ]] then echo "" echo "Parameters:-" echo "" echo "None" echo "" exit fi # #Get a list of all databases on the current installation. # SDS_dblist=$(sql iidbdb <