Thread: Copying Found Files (BASH)
what's up?
ok, i'm trying copy files terminal command "find" finds. example.
will find me " ./folder/js.js " how then copy found file(s) dir?code:find . -name "*.js"
bye!
something this:
edit:code:find ./ -name "*.js" -exec cp {} /some/other/path \;
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
Post a Comment