Move only files to a folder

I want to move all the files inside a directory to another directory which is inside that directory. Please help.
Note: I want to move only the files. Note the folders. Thanks in advance.

What have you tried and where are you stuck?

Please post your examples so we could help you better.

Hi! Just now I found the required command.

find . -name "*" -type f -exec mv -f {} <folder> \;

Thanks a lot..

-name "*" is useless in your code.

find . -type f -exec mv {} <folder> \;
1 Like