Global replace with awk

change start to end in all *.txt files

awk '{gsub("start", "end", $0); print > FILENAME}' *.txt

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply