I am on a windows 2003 server, trying to write a dos batch script.
I have a file with a date in it "date.txt"
content looks like "Thu Mar 29 12:27:36 2012"
I have another file copy.cmd that has 5 input parms corresponding to the 5 date parts above %1 is for "day", %2 is for "month", %3 is for...
I am using ksh on a SunOS machine. I cannot figure out why I am receiving this "if" error.
SYTIME="10:30"
if [ -n "$QETIME" ]; then
JEND=$SYTIME
fi
echo QETIME:$QETIME
echo JEND:$JEND
this command works
CSTIME=$(grep "PA3.1" Jobcheck.tbl | cut -f2 -d',')
but when I replace the values with variables with same values
CSTIME=$(grep $JNAME $TBL | cut -f2 -d',')
I get "error can't open Jobcheck.tbl"
Am I missing special characters in the 2nd grep command?
Any help would be...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.