From 484bde9b136f18a02d9629b655bb3d9405848719 Mon Sep 17 00:00:00 2001 From: Jacob Chapman <7908073+chapmanjacobd@users.noreply.github.com> Date: Mon, 18 Apr 2022 20:47:35 -0500 Subject: [PATCH] oh there's another one --- scripts/extract_successful_ids.sh | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/scripts/extract_successful_ids.sh b/scripts/extract_successful_ids.sh index 011ba6c..e8f482e 100755 --- a/scripts/extract_successful_ids.sh +++ b/scripts/extract_successful_ids.sh @@ -7,17 +7,10 @@ else exit 1 fi -if [ -n "$2" ]; then - output="$2" - echo "Outputting IDs to $output" -else - output="./successful.txt" -fi - { 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) }' ; grep 'Hard link made' "$file" | awk '{ print $(NF) }' ; -} >> "$output" +}