Quiz ASSESMENT

#!/bin/bash

# WRITE YOUR CODE HERE

while IFS= read -r line; do
  if [[ $line =~ ^Discover.* ]]; then
    echo "$line"| awk -F, '{print $3}'
  fi
done < "credit.csv"

by codio solution

#!/binbash

while read line
do

  if [[ $line =~ .*[Dd]iscover.* ]];
  then
    if [[ $line =~ [0-9]{16} ]];
    then
      echo ${BASH_REMATCH[0]}
    fi
  fi
done < credit.csv