I am interested if there's a more elegant solution to the one posted below.

```
[]$ find ./abc -type f -exec sed -n 's/test/best/pg' {} + ; find ./abc -type f -exec sed -i 's/test/best/g' {} +

```

The first `find sed` command prints all found patterns to console. The second `find sed` command actually substitutes the patterns within file. 

The problems I have encountered:

1. `sed -n -i` (cannot have multiple command line modifier/arguments) -? someone confirm?
2. `sed` does not have a native modifier to print results prior to substitution -? had trouble finding a solution, maybe it exists, and the command can be modified (i.e. below will output nothing, and substitute behind your back!).

```
find ./abc -type f -exec sed -i 's/test/best/pg' {} +  

```