22
7
I've got a directory that contains a bunch of other folders containing CoffeeScript/ JavaScript files. I'm able to compile the CoffeeScript files into a new folder with the same folder structure fine.
What I want to do is copy all the *.js files in the source folder to the destination folder recursively. I also don't want to overwrite any files that are already present in the destination folder. Any thoughts of how to accomplish this?
I tried using cp -n source/**.js desination/
and cp -Rn source/**.js desination/
after looking at another similar question, but it doesn't seem to be working.
Any idea how to accomplish this?
Did you have a look into rsync? – bonob – 2014-04-16T15:37:26.667
@bonob I haven't no. I've used it once or twice, but only for getting files remotely. – AlbertEngelB – 2014-04-16T15:40:41.383