fixed issue with processing processed items at the start

This commit is contained in:
louwrentius 2011-09-23 20:57:24 +00:00
parent 114112241f
commit 828e4d135c
1 changed files with 7 additions and 4 deletions

11
ppss
View File

@ -1846,10 +1846,13 @@ remove_processed_items_from_input_file () {
INPUTFILES=`list_all_input_items`
TMP_FILE=$RANDOM$RANDOM$RANDOM$RAMDOM
comm -3 $LISTOFITEMS $LIST_OF_PROCESSED_ITEMS > $TMP_FILE
mv $TMP_FILE $LISTOFITEMS
log DSPLY "Done. Continue processing remaining items."
OUT_FILE=$RANDOM$RANDOM$RANDOM$RAMDOM
LIST_SORTED=$RANDOM$RANDOM$RANDOM$RANDOM
PROCESSED_SORTED=$RANDOM$RANDOM$RANDOM$RANDOM
cat "$LISTOFITEMS" | sort > "$LIST_SORTED"
cat "$LIST_OF_PROCESSED_ITEMS" | sort > "$PROCESSED_SORTED"
comm -3 $LIST_SORTED $PROCESSED_SORTED > $OUT_FILE
mv "§$TMP_FILE" "$LISTOFITEMS"
}
get_all_items () {