if [[ -s $LockboxFile1]]
then
echo " "
echo "Files in the archived directory: "
cat $LockboxFile1 |
while read line
do
grep -l CHK $line >> $LockboxFile2
done
fi
it's erroring out, would anyone know why it's not working?
cat $LockboxFile1 | while read line
do
grep -l CHK $line
done >> $LockboxFile2
it's giving me an error: done unexpected
cat $LockboxFile1 | while read line
do
grep -l CHK $line
:
done >> $LockboxFile2
it's giving me an error: done unexpected
-- but i tried to run this in unix and it returned the output I am expecting, it's just not working when i add and run in the ksh script i am working on