From 32f72c35ec68350bb9e3c91d5d0a2db21d298fc8 Mon Sep 17 00:00:00 2001 From: Serene-Arc Date: Tue, 18 May 2021 13:58:07 +1000 Subject: [PATCH] Update script to catch more failed IDs --- scripts/extract_failed_ids.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/extract_failed_ids.sh b/scripts/extract_failed_ids.sh index cdf1f21..033ecac 100755 --- a/scripts/extract_failed_ids.sh +++ b/scripts/extract_failed_ids.sh @@ -14,5 +14,8 @@ else output="failed.txt" fi -grep 'Could not download submission' "$file" | awk '{ print $12 }' | rev | cut -c 2- | rev >>"$output" -grep 'Failed to download resource' "$file" | awk '{ print $15 }' >>"$output" +{ + grep 'Could not download submission' "$file" | awk '{ print $12 }' | rev | cut -c 2- | rev ; \ + grep 'Failed to download resource' "$file" | awk '{ print $15 }' ; \ + grep 'failed to download submission' "$file" | awk '{ print $14 }' | rev | cut -c 2- | rev ; \ +} >>"$output"