saveRecord() { STATUS=1 YORNMSG="Save Record" [[ "_${FUNCTION}" = "_transient" ]] && YORNMSG="Process Record" if yesOrNo "${YORNMSG}" then if [[ "_${FUNCTION}" != "_transient" ]] then [[ ! -d ${DD_DATABASE}${1} ]] && mkdir ${DD_DATABASE}${1} && chmod 777 ${DD_DATABASE}${1} # RECORD=$( ${CMD_ECHO} "${RECORD}" | tr '/' "${DIRSEP:=!}" ) # RECORD=$( ${CMD_ECHO} "${RECORD}" | sed -e "s/\//${DIRSEP:=!}/g;s/ /_/g" ) RECORD="${RECORD//\//${DIRSEP:=!}}" RECORD="${RECORD// /_}" [[ "_${FUNCTION}" = "_config" ]] && rm -f ${DD_DATABASE}${1}/* touch "${DD_DATABASE}${1}/${RECORD}" STATUS="${?}" else STATUS="0" fi fi return ${STATUS} }