find proper regular files and pass to sed to perform replacement of string
my dir contents are below and I cant find them to pass in sed for replacement.
find third_party/docker/rec/.* -type f -maxdepth 3 -name '.*'
get no output
<code>Command> ls -ltr third_party/docker/rec/
total 40
drwxr-xr-x 4 alxr staff 128 Apr 26 10:16 example
-rw-r--r-- 1 alxr staff 143 Apr 26 10:16 constants.bzl
drwxr-xr-x 15 alxr staff 480 Apr 26 10:16 rules
-rw-r--r-- 1 alxr staff 6434 Apr 26 10:16 defs.bzl
drwxr-xr-x 22 alxr staff 704 Apr 26 10:16 base_images
-rw-r--r-- 1 alxr staff 0 Apr 26 10:47 BUILD
-rw-r--r-- 1 alxr staff 0 Apr 26 10:47 BUILD-e
-rw-r--r-- 1 alxr staff 40 Apr 26 10:47 OWNERS
-rw-r--r-- 1 alxr staff 40 Apr 26 10:47 OWNERS-e
</code>
<code>Command> ls -ltr third_party/docker/rec/
total 40
drwxr-xr-x 4 alxr staff 128 Apr 26 10:16 example
-rw-r--r-- 1 alxr staff 143 Apr 26 10:16 constants.bzl
drwxr-xr-x 15 alxr staff 480 Apr 26 10:16 rules
-rw-r--r-- 1 alxr staff 6434 Apr 26 10:16 defs.bzl
drwxr-xr-x 22 alxr staff 704 Apr 26 10:16 base_images
-rw-r--r-- 1 alxr staff 0 Apr 26 10:47 BUILD
-rw-r--r-- 1 alxr staff 0 Apr 26 10:47 BUILD-e
-rw-r--r-- 1 alxr staff 40 Apr 26 10:47 OWNERS
-rw-r--r-- 1 alxr staff 40 Apr 26 10:47 OWNERS-e
</code>
Command> ls -ltr third_party/docker/rec/
total 40
drwxr-xr-x 4 alxr staff 128 Apr 26 10:16 example
-rw-r--r-- 1 alxr staff 143 Apr 26 10:16 constants.bzl
drwxr-xr-x 15 alxr staff 480 Apr 26 10:16 rules
-rw-r--r-- 1 alxr staff 6434 Apr 26 10:16 defs.bzl
drwxr-xr-x 22 alxr staff 704 Apr 26 10:16 base_images
-rw-r--r-- 1 alxr staff 0 Apr 26 10:47 BUILD
-rw-r--r-- 1 alxr staff 0 Apr 26 10:47 BUILD-e
-rw-r--r-- 1 alxr staff 40 Apr 26 10:47 OWNERS
-rw-r--r-- 1 alxr staff 40 Apr 26 10:47 OWNERS-e
command to run after I can find.
<code>Command> sed -i '' -e 's/av_/product_/g' third_party/docker/rec/* `find third_party/docker/rec/.* -type f -maxdepth 0 -print0`
</code>
<code>Command> sed -i '' -e 's/av_/product_/g' third_party/docker/rec/* `find third_party/docker/rec/.* -type f -maxdepth 0 -print0`
</code>
Command> sed -i '' -e 's/av_/product_/g' third_party/docker/rec/* `find third_party/docker/rec/.* -type f -maxdepth 0 -print0`
output
<code>sed: third_party/docker/rec/base_images: in-place editing only works for regular files
</code>
<code>sed: third_party/docker/rec/base_images: in-place editing only works for regular files
</code>
sed: third_party/docker/rec/base_images: in-place editing only works for regular files