Mit GNU find:
cd experiment find . -name "foo.txt" -exec echo cp -v source-foo.txt {} \;
Wenn alles in Ordnung ist, entfernen Sie es echo
.
Ausgabe mit echo
:
cp -v source-foo.txt ./foo.txt cp -v source-foo.txt ./subdir/foo.txt
Ausgabe ohne echo
:
`source-foo.txt '->` ./foo.txt' `source-foo.txt '->` ./subdir/foo.txt'