S
S
Sadykh Sadykh2016-05-28 20:07:31
ubuntu
Sadykh Sadykh, 2016-05-28 20:07:31

How to copy all files from under folders to one folder in Ubuntu?

The point is exactly what. There is a folder, it has a lot of subfolders and files in them. You need to collect all the files on one level in another folder. Provided that if files with the same names come across, then look at the file size. If more - replace, if less - skip.
Found this command:
find ./images -type f -exec sh -c "mv {} ./images2/" \;
But it does not take into account the size of files with the same name. The Ubuntu console is not strong. Help me please.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question