C
C
corpsepk2015-07-10 12:35:57
linux
corpsepk, 2015-07-10 12:35:57

How to copy files recursively without preserving directory structure (Debian)?

Good afternoon.
There is a file structure:

./06/00/00/00000608.jpg
./06/00/00/00000609.jpg
...
./08/00/00/00000896.jpg
... итп

Please tell me how to copy them recursively NOT preserving the directory structure so that they are all in the same directory.
./00000608.jpg
./00000609.jpg
./00000896.jpg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Burov, 2015-07-10
@corpsepk

find /path/to/files -type f -exec cp {} ./ \;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question