Hi
I am having problems finding a solution for a problem where I use grep -v.
And the list has become to large.
The problem is the bold sentence. And I need to figure out how to overcome problems with large lists.
Regards
LHG
I am having problems finding a solution for a problem where I use grep -v.
And the list has become to large.
The problem is the bold sentence. And I need to figure out how to overcome problems with large lists.
Code:
echo "Start Medium"
# SECTION TO MAKE SURE THAT YOU ARE NOT PAGED TWICE FOR THE SAME LOG
echo 1
for item in `cat $NAME_FILTER_MEDIUM`
do
cat $TMP_LIST.New_Logs|grep $item >> $TMP_LIST.medium_Logs
done
[b]cat $TMP_LIST.medium_Logs|grep -f $NAME_FILTER_MEDIUM|egrep -v "$FILTER_OUT_MEDIUM"|while read LINE[/b]
do
LOG=$LINE
STATUS=`grep $LOG $SCRIPT_LOG_FILE`
if [ ${#STATUS} -gt 0 ]
then
echo "Previously checked this file. Skipping!">null
else
# this log has never been checked before
echo $LOG >> $TMP_LIST.New_Logs_Filtered_MEDIUM
fi
done
Regards
LHG