It sounds like a simple question but if it was I wouldn't be asking it. I can obviously do this by opening all the folders in nautilus and pasting each one individually but the computer is the robot not me (I'm talking about 500 files).
So is there a way of doing this more efficently by gui or command line? either is as good as the other.
If it makes you feel better you will be saving a poor "V" key from severe punishment.
If the folders are in the same folder that the file exists, then use:
In other scenery, if the file is in a different path, use:
If you don't know what exactly are the names of the folders where to put the file, try:
There is no need to make a script. Simply drop these commands in a terminal and check the results.
Glossary:
I can make touch {jan,feb,mar}-{Rep.xls,graph.xls} makes feb-graph.xls jan-Rep.xls feb-Rep.xls mar-graph.xls jan-graph.xls mar-Rep.xls
But i cant open them. So i wanted to make one file 1.ods saved from OO-Calc and then wanted to cp it similar like touch {jan,feb,mar}-{Rep.xls,graph.xls} using cp 1.ods {jan,feb,mar}{Rep.ods,graph.ods} but that doesnt work. cp: target `margraph.ods' is not a directory SO im also interested in this
find . -type d | xargs -I{} cp ./myfile {}/
This is how I got the job done.
Here was the problem I wanted solved. I wanted to test all my new virtual hosts before installing the actual applications.