refactor: Directly use one "big" awk command
Replace "cat + grep + head + awk + tr" by one awk command.
That's also avoid the "useless cat" case :
https://github.com/koalaman/shellcheck/wiki/SC2002
Co-authored-by: gierens <sandro@gierens.de>
Co-authored-by: Gardouille <gardouille@gmail.com>