1
0
Fork 0
mirror of synced 2024-10-01 09:41:03 +13:00
bulk-downloader-for-reddit/scripts/extract_failed_ids.sh
OMEGARAZER a5b445945a
Partial revert of 98aa3d7
Reverts some quote changes for awk commands as the prints do not function the same with double quotes when the variable number is over 10
2023-03-01 23:46:20 -05:00

16 lines
521 B
Bash
Executable file

#!/bin/bash
if [ -e "$1" ] && [ -f "$1" ]; then
file="$1"
else
echo "CANNOT FIND LOG FILE"
exit 1
fi
{
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 ;
grep "Failed to write file" "$file" | awk '{ print $14 }' ;
grep "skipped due to disabled module" "$file" | awk '{ print $9 }' ;
}