I'm using the following command to move all files (non-recursively) ended in _128.jpg into the 128x160 subdir. This works great.
find . -iname '*_128.jpg' | xargs -I '{}' mv {} 128x160
But I also need to remove the _128 suffix from each file. Also, I must keep my current xargs method, making an exec for each would make the process extremely longer.
Thanks in advance for your cooperation!
find ..... | xargs mv -t 128x160
because in that case it would move as many files it could with onemv
command. The way you call it it runsmv
as many times as there are files to be moved. Comparefind . -iname '*_128.jpg' | xargs -I '@' echo @ bla
tofind . -iname '*_128.jpg' | xargs echo bla