Script parse file

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!

  1. The problem statement, all variables and given/known data:

Hi all, I need help for a script that pulls out a series of numbers from a file (attached file) Basically I need a parse to file and write only in a generic variable (serial) : 9d424312

  1. Relevant commands, code, scripts, algorithms:
    unix shell scripting

  2. The attempts at a solution (include all code and scripts):

{ s=$(<aid.conf);} 2>/dev/null while IFS= read str ; do               IFS= read -ra ADDR <<< "$str"    for i in "${ADDR[@]}"; do        echo $i    done    done <<< "$s"

Linux Debian 9.3
nome script: try.sh

  1. Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):

homework project (read tag NFC)

Hi there is not input file specified. Please post a relevant sample.

That being said,

IFS= read -ra ADDR <<< "$str"  

means that there is always exactly one array element in array ADDR, since you set the field separator to the empty string.