Hello
i have a function written in which i m running a read command which looks like following:
-----------------------------------------------------------------
generate_r_current() {
date
echo "step=$step"
db2 "select count(*),'QQQQQQ' from krms_stg.dcx_imds_r with ur" | grep 'QQQQQQ' > $wrkdir/seeimds_cnt.asc
RC=$?
checkRC 0
read cnt rest < $wrkdir/seeimds_cnt.asc if [[ "$cnt" = '0' ]]
then
sendIt "SCRIPT: $0\nSEEIMDS-Batch: No New Raw Data Received \nDATE: $(date)" "SEEIMDS-Batch - FYI"
fi
------------------------------------------------------------------
the 'read' statement confuses me as whats meant by 'rest'?I have scanned the whole script & don see 'rest' being mentioned/declared/used anywhere.
I went thru 'man read' but did not find anything about 'rest'.
Can anyone explain what this statement means?
Regards
Abhi