Skip to main content

Thread: Copying Found Files (BASH)


what's up?

ok, i'm trying copy files terminal command "find" finds. example.
code:
find . -name "*.js"
will find me " ./folder/js.js " how then copy found file(s) dir?

bye!

something this:
code:
find ./ -name "*.js" -exec cp {} /some/other/path \;
edit:
similar other options discussed at:
http://ubuntuforums.org/archive/index.php/t-405261.html

edit 2: caution
might want read through 'man find' page warnings on using -exec action.


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] Copying Found Files (BASH)


Ubuntu

Comments

Popular posts from this blog

DHT11 Time out error using v0.4.1library

Sketch upload fails with Java error (___REMOVE___/bin/avrdude)!

Arduino Uno + KTY81/210 temperature sensor