Fedora terminal: Extract single files from multiple folders into one folder?

58 Views Asked by At

I have multiple folders with files. I would like all the files in one folder. How do i do this? I tried mv *(extension) /path to current folder but mv doesn't look into folders.

1

There are 1 best solutions below

2
On BEST ANSWER

find . -name *.ext -type f -exec mv '{}' folder/. \;