I know $0 is the entire file's contents (at least I think that is what it is!), but what exactly is: $0!~
This was a snippet from a larger line
awk '$0!~/^$/ {print $0}'
This deletes blank lines, but I want to know specifically the $0!~ part... I am guessing /^$/ is regex for blank line... and {print $0} means to print the whole thing to stdout.. Right?
Yes.
~ == >> "match"
!~ == >> "no match"
It prints lines which doesn't match with regular exp ^$ i.e. blank.
So prints all non-blank lines only (i.e. delete blank lines)