tags:

views:

186

answers:

1

I have extended regexes enabled in my Bash by

shopt -s extglob

They may be useful in solving the problem.

I run the following unsuccessfully, since it moves also directories

$ mv `find . -maxdepth 1` django-tes/

I am trying to find all files except directories and move them to a directory called django-tes/.

How can you move all files except directories in a folder to a folder in terminal?

+3  A: 

Try using find . -type f -maxdepth 1

tvanfosson
Thank you! Your code works.
Masi