I have extended regexes enabled in my Bash by
我已经在我的Bash中启用了扩展的正则表达式
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/.
我试图找到除目录之外的所有文件,并将它们移动到名为django-tes /的目录中。
How can you move all files except directories in a folder to a folder in terminal?
如何将文件夹中目录以外的所有文件移动到终端中的文件夹?
1 个解决方案
#1
Try using find . -type f -maxdepth 1
尝试使用find。 -type f -maxdepth 1
#1
Try using find . -type f -maxdepth 1
尝试使用find。 -type f -maxdepth 1