5

Awk--throwing an error

view full story
linux-howto

http://www.unix.com – Hi all, I have below code Code: sqlplus -s ext/exo@TIS  << EOF whenever sqlerror exit failure rollback; set echo off set head off set serveroutput on set termout on set trimspool on SPOOL $SPOOL_FILE select 'ROWS '|| ' '||decode((count(Part_no)),0,'With greater values not found',count(part_no)) from log / spool off exit EOF ROWS=`cat ${SPOOL_FILE} | grep ROWS | awk '{print $2}' ` INFORMATION=`tr -cs 'A-Za-z' '\n' < /a/abc.lst | grep -c "INFORMATION"` echo $INFORMATION if [ "${ROWS}" -ne 0 ] ||  [ "${INFORMATION}" -ne 0 (HowTos)