use 'pf' instead of px to avoid colors, and use internal grep instead of awk. Thanks @trufae for the optimization tips :)