Skip to main content
3 of 3
replaced http://stackoverflow.com/ with https://stackoverflow.com/

Check out this answer: How to check if sed has changed a file.

Its pretty much the same as you are asking, its suggesting you use awk or output to a different file and diff the two files.

delh
  • 4.8k
  • 1
  • 15
  • 10