This question already has an answer here:
- Find pattern and move 3 answers
I have almost 6000 directories with thousands of files:
all/recup_dir.1/1.txt all/recup_dir.1/2.jpg ... all/recup_dir.5987/1.txt all/recup_dir.5987/2.txt ...
and I want to move all .txt files in the all/txt folder. I have used this command:
mv **/*.txt txt
but I get this error:
bash /bin/mv arg list too long
How can I do?