A lot of distributions are emitting warnings when using egrep and fgrep since these are deprecated. Update occurrences of egrep to 'grep -E' keeping the same functionality and making the code more portable without emitting warnings.
The CI is now running on Ubuntu 22.04-LTS along with gcc-11 and clang-format-12 .