greycat 1629040069 learn An awk program executed from a shell should be enclosed in single quotes. awk 'cond1 {block1} cond2 {block2}'; The anti-pattern awk {'block1'} is wrong, because it doesn't allow multiple conditions and blocks.