updated ip scripts with awk