I am trying to move about 700,000 .jpg files from one directory to another on my Ubuntu server. I tried the following:
xargs mv * -t /var/www/html/
and
echo (*.jpg|*.png|*.bmp) | xargs mv -t /var/www/html/
and
echo (*.jpg) | xargs mv -t /var/www/html/
and
find . -name "*.jpg" -print0 | xargs mv * ../
and they all give me the same error: / usr / bin / xargs: list of arguments too long
what should I do? Please help me. Thanks:)
linux ubuntu mv xargs
Awah hammad
source share