extract_failed_ids.sh 506 B

12345678910111213141516
  1. #!/bin/bash
  2. if [ -e "$1" ]; then
  3. file="$1"
  4. else
  5. echo 'CANNOT FIND LOG FILE'
  6. exit 1
  7. fi
  8. {
  9. grep 'Could not download submission' "$file" | awk '{ print $12 }' | rev | cut -c 2- | rev ;
  10. grep 'Failed to download resource' "$file" | awk '{ print $15 }' ;
  11. grep 'failed to download submission' "$file" | awk '{ print $14 }' | rev | cut -c 2- | rev ;
  12. grep 'Failed to write file' "$file" | awk '{ print $14 }' ;
  13. grep 'skipped due to disabled module' "$file" | awk '{ print $9 }' ;
  14. }