created awk scripts for search/replace function