Tuesday, June 27, 2017

Reading Mongo Log for a particular day and particular error


for file in `ls -lrt|grep -v grep|grep "Jun 27"|awk -F " " '{print $9}'`
do
if [ "$file" != "a.sh" ]; then
grep -i "Rehydration successfully completed for node :" $file
fi
done

No comments:

Post a Comment