[ubuntu-in] Strange problem with too many jpg files in one folder
Ramnarayan.K
ramnarayan.k at gmail.com
Wed Aug 25 15:23:50 BST 2010
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]
atleast its starting to see some image (like image301001.jpg)
On 8/25/10, Ramnarayan.K <ramnarayan.k at gmail.com> wrote:
> On 8/25/10, Ritesh Sinha <sinha.k.ritesh at gmail.com> wrote:
>> # find $SOURCEFOLDER -type f -size +800 -name '*.jpg' -exec mv {}
>> $DESTFOLDER/. \;
>>
>
> this is what i get
> # find /home/himal -type f +800 -name *.jpg -exec mv {}
> /home/himal/Pictures/recovered/bigger800kb/
> bash: /usr/bin/find: Argument list too long
>
> all the way till +7000 i get the same error ??
>
> find /home/himal -type f +7000 -name *.jpg -exec mv {}
> /home/himal/Pictures/recovered/bigger800kb/
> bash: /usr/bin/find: Argument list too long
>
> any idea what is wrong - as you can see i tried reducing the number of
> target files so that the command would not crash under overload but it
> seems something else is the matter because i am quite sure there are
> not too mny images over 7000 kb as my camera has a max (best) image
> size of about 5 MB
>
> ram
>
More information about the ubuntu-in
mailing list