1
0
Fork 0
mirror of synced 2024-05-21 20:52:48 +12:00

oh there's another one

This commit is contained in:
Jacob Chapman 2022-04-18 20:47:35 -05:00 committed by GitHub
parent 4e050c50d6
commit 484bde9b13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"
}