I have a directory structure of which I wish to recursively go through the folders and copy any .jpg I find into another directory.
I think I had the wrong idea with:
cp -R photos/*.jpg /cpjpg
I am usin Ubuntu.
Thanks.
|
I have a directory structure of which I wish to recursively go through the folders and copy any .jpg I find into another directory. I think I had the wrong idea with:
I am usin Ubuntu. Thanks. | |||||
feedback
|
This question came from our site for professional and enthusiast programmers.
|
This will copy all files ending in .jpg or .jpeg (case insensitive as well) in the current directory and all its subdirectories to the directory /cpjpg.
| ||||
|
feedback
|
|
This will do the same thing as above, but will preserve the directory structure.
| ||||
|
feedback
|