Search Results

Search: Posts Made By: 47shailesh
2,705
Posted By 47shailesh
well if the file doesn't exist return code of...
well if the file doesn't exist return code of grep will non 0 and so it will if file exists but your pattern doesn't exist in file. Meaning the return code of grep -iqw P_BUS_DATE...
2,705
Posted By 47shailesh
grep -iqw P_BUS_DATE $COMMON_TMP/DateFile.txt...
grep -iqw P_BUS_DATE $COMMON_TMP/DateFile.txt 2>/dev/null
if [ $? -eq 0 ];then
BUS_DATE=`grep -i P_BUS_DATE | cut -d = -f 2`
else
BUS_DATE= `date "+%Y%m%d"`
fi
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 08:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy