#!/bin/bash -
#===============================================================================
#
#          FILE:  ctasd_file
#
#         USAGE:  ./ctasd_file
#
#   DESCRIPTION:  This is to delete and create root files
#
#       OPTIONS:  ---
#  REQUIREMENTS:  ---
#          BUGS:  ---
#         NOTES:  ---
#        AUTHOR: Jithesh B (jithesh@glowtouch.com),
#  ORGANIZATION: Glowtouch
#       CREATED: 01/25/2012 02:58:16 PM PST
#      REVISION:  ---
#===============================================================================
if [ -z $1 ]
then
echo "Error:: Usage problem..."
echo "Usage: Usage ctasd_delete <file with full path> <wat to do>"
echo "Wat to do options are: del, crt"
echo "del = Delete file"
echo "crt = Create file"
echo "........"
exit
fi
if [ -z $2 ]
then
echo "Error:: Usage problem..."
echo "Usage: Usage ctasd_delete <file with full path> <wat to do>"
echo "Wat to do options are: del, crt"
echo "del = Delete file"
echo "crt = Create file"
echo "........"
exit
fi
REMOVE="$(which rm)"
TOUCH="$(which touch)"
if [ $2 == 'del' ]
then
$REMOVE -rf $1
elif [ $2 == 'crt' ]
then
$TOUCH $1
fi

