[ubuntu-in] Strange problem with too many jpg files in one folder

Abhishek Amberkar [अभिषेक] abhishek.amberkar at gmail.com
Wed Aug 25 16:17:47 BST 2010


On Wed, Aug 25, 2010 at 7:53 PM, Ramnarayan.K <ramnarayan.k at gmail.com> wrote:
> further tweaking gets me here
> # find /home/himal/ size +1000 -name image3*.jpg -exec mv '{}'
> /home/himal/Pictures/recovered/bigger800kb/ \;
> find: paths must precede expression: image301001.jpg
> Usage: find [-H] [-L] [-P] [-Olevel] [-D
> help|tree|search|stat|rates|opt|exec] [path...] [expression]
>
>

find /home/himal/ size +1000 -name 'image3*.jpg' -exec mv {}
/home/himal/Pictures/recovered/bigger800kb/ \;

This should do the trick.

Don't use single quotes around the curly braces next to "mv" and make
sure argument to "-name" to be in single quotes.


-- 
With Regards
Abhishek Amberkar



More information about the ubuntu-in mailing list