Replace “\n” with newline in awk September 25, 2023 by Tarik How about this? $ cat file John\nDoe Sara\nConnor $ awk '{gsub(/\\n/,"\n")}1' file John Doe Sara Connor