Check out this awnser:
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.
Check out this awnser:
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.