Skip to content

Commit a285b1c

Browse files
committed
try grep instead of comm
1 parent 67894d9 commit a285b1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bkg.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ main() {
9797
primary key (owner_id, package, date)
9898
); pragma auto_vacuum = full;"
9999
sqlite3 "$BKG_INDEX_DB" "select distinct owner_id, owner, repo, package from '$BKG_INDEX_TBL_PKG' where date >= '$BKG_BATCH_FIRST_STARTED';" >packages_already_updated
100-
sqlite3 "$BKG_INDEX_DB" "select distinct owner_id, owner, repo, package from '$BKG_INDEX_TBL_PKG';" >packages_all
101-
comm -13 packages_already_updated packages_all >packages_to_update
100+
sqlite3 "$BKG_INDEX_DB" "select distinct owner_id, owner, repo, package from '$BKG_INDEX_TBL_PKG' order by date asc;" >packages_all
101+
grep -vFxf packages_already_updated packages_all >packages_to_update
102102
pkg_left=$(wc -l <packages_to_update)
103103
echo "all: $(wc -l <packages_all)"
104104
echo "done: $(wc -l <packages_already_updated)"

0 commit comments

Comments
 (0)