From 527a8af7b7fbd33b280bfd8072c70e15808ba063 Mon Sep 17 00:00:00 2001 From: Serene-Arc Date: Sat, 22 May 2021 11:47:59 +1000 Subject: [PATCH] Update script to extract IDs --- scripts/extract_successful_ids.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/extract_successful_ids.sh b/scripts/extract_successful_ids.sh index 3b6f7bc..6c7930d 100755 --- a/scripts/extract_successful_ids.sh +++ b/scripts/extract_successful_ids.sh @@ -14,4 +14,9 @@ else output="successful.txt" fi -grep 'Downloaded submission' "$file" | awk '{ print $(NF-2) }' >> "$output" +{ + grep 'Downloaded submission' "$file" | awk '{ print $(NF-2) }' ; + grep 'Resource hash' "$file" | awk '{ print $(NF-2) }' ; + grep 'Download filter' "$file" | awk '{ print $(NF-3) }' ; + grep 'already exists, continuing' "$file" | awk '{ print $(NF-3) }' ; +} >> "$output"