#!/bin/ksh
#!/bin/ksh -xv
#
#&& Copy filename specified to filename_YYYYMMDD_hhmm
#&& time stamps with current datetime.
#
#& This is can be used by customers. 
#
echo "Running `grep "\$\I\d\:" ${0} | awk '{print $3,$4,$5,$6}' ` "
#
# $Id: timestamp,v 1.1 2023/03/27 21:29:03 root Exp root $
#
# The following code is Confidential and is covered by the installation license
# (c) Copyright Fortra, LLC. and its group of companies.
# 

jdate=`date '+%Y%m%d_%H%M'`

if [ "xx" == "x${1}x" ] ; then
   echo "No filename specified. (timestamp (filename))"; exit
fi

if [ -s $1 ] ; then
   cp $1 $1_${jdate}
   ls -al $1
else
   echo "Could not find ($1)"
fi
