fixed issue with processing processed items at the start
This commit is contained in:
parent
114112241f
commit
828e4d135c
11
ppss
11
ppss
|
@ -1846,10 +1846,13 @@ remove_processed_items_from_input_file () {
|
||||||
|
|
||||||
INPUTFILES=`list_all_input_items`
|
INPUTFILES=`list_all_input_items`
|
||||||
|
|
||||||
TMP_FILE=$RANDOM$RANDOM$RANDOM$RAMDOM
|
OUT_FILE=$RANDOM$RANDOM$RANDOM$RAMDOM
|
||||||
comm -3 $LISTOFITEMS $LIST_OF_PROCESSED_ITEMS > $TMP_FILE
|
LIST_SORTED=$RANDOM$RANDOM$RANDOM$RANDOM
|
||||||
mv $TMP_FILE $LISTOFITEMS
|
PROCESSED_SORTED=$RANDOM$RANDOM$RANDOM$RANDOM
|
||||||
log DSPLY "Done. Continue processing remaining items."
|
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 () {
|
get_all_items () {
|
||||||
|
|
Loading…
Reference in New Issue