you can use the system command to execute an external unix command. Myself, I think it's cleaner to remove files outside the awk script, but that's a personal choice.
cp /dev/null "file_to_rm" isn't really a delete, but it truncates the file to 0 size.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.