#!/bin/sh

# set global env setting
. /opt/jilroy/checkit//bin/env

if [ "$1" = "" ]
then
	echo  'usage:  exporttable2csv instructions_csv_file_name
		where the instructions file structrue is:	
		    line1:TableName 
		    line2:CSVFileName 
		    line3:SeperatorString
		    line4:ReplaceSeperatorString
    
		The program exports the content of a given table to CSV file. If seperator found in table field then replace it with the replace string'   
else
	$RUN_JAVA com.rj.common.database.SQLUtilitiesMain $APP_CONFIG_FILE Table2CSV $1
fi


