awk --- Using Perl like awk {{{sh perl -n -e'/test(\d+)/ && print "$1\n"' }}}