[Linux-disciples] delete a whole lot of files

Adam Rosi-Kessel adam at rosi-kessel.org
Wed Feb 7 13:21:33 EST 2007


On 2/7/2007 1:16 PM, Adam Rosi-Kessel wrote:
> find /home/church -iname '*.jpg' -size -500k print0 \
> 		-exec mv '{}' ~/trash_dir \;
> 
> Or even:
> 
> find /home/church -iname '*.jpg' -size +500k print0 \
> 		-exec mv '{}' ~/good_dir \;

Of course, make sure you mkdir trash_dir or good_dir first, or you will
lose all your files!


More information about the Linux-disciples mailing list