use "sub" instead of "ec2"; fix awk