Variable Validation

view full story

http://www.unix.com – Hi Guys, I am getting count from a file (pipe delimited). Code: "23"|"9896"|"20090101"|"New Load" I am using the following code to get the first two counts. Code: CtrlFileByte=`/bin/gawk -F"|" '{ print $1 }' $ControlFile`; CtrlFileCnt=`/bin/gawk -F"|" '{ print $2 }' $ControlFile`; But the problem is file Byte is not mandatory as well as file count. So, if it is present then i have execute a check otherwise i just skip it an d check for the other one. I am using the following code for it. But it is throwing an err (HowTos)