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

Ramnarayan.K ramnarayan.k at gmail.com
Wed Aug 25 15:00:10 BST 2010


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