Basically, my hard drive is a mess and I have like 200+ sub-directories in a main directory. I want to essentially move all files in 200+ sub-directories that have the extension
.txt etc to a new directory. For example,
So I try the following command in the main directory consisting of the 200+ subdirectories
sudo mv **/*.txt ~/Desktop/tmpremo/
Instead I am getting this error:
bash: /usr/bin/sudo: Argument list too long
Why am I getting it and how do I remove say
.txt,.txt.exe? How do I fix it?