====== AWK - Find and replace a string ====== awk '{gsub(/old_string/, "new_string")};{print}' file.txt ---- Find either of the old strings and replace with the new string. awk '{gsub(/old_string1|old_string2|old_string3/, "new_string")};{print}' file.txt