Search Results

Search: Posts Made By: Chrismcq
1,547
Posted By Chrismcq
This will work :- found=0 if [ -s A123.rej...
This will work :-

found=0
if [ -s A123.rej ]
then
found=1
fi

if [ -s A345.rej ]
then
found=1
fi

if [ $found = 0 ]
then
echo "No Data"
else
echo "Data found"
fi
892
Posted By Chrismcq
Hi - I may be missing the point here, but if it...
Hi - I may be missing the point here, but if it is only the first update line that you are interested in, you could simply do the following :-

grep "Update completed" MyLogFile | head -1
Is this...
Showing results 1 to 2 of 2

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