> For the complete documentation index, see [llms.txt](https://taqiyeddine.gitbook.io/exploring-it/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://taqiyeddine.gitbook.io/exploring-it/devops/bash-scripting-and-system-configuration-certificate-notes/bash-scripting-and-system-configuration/week2/quiz-assesment.md).

# Quiz ASSESMENT

```bash
#!/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

```bash
#!/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
```
