Argument list too long - help

Chris Jones christopher.rob.jones at cern.ch
Wed Jun 10 19:11:08 UTC 2009


> Hi,

> You have two versions here:
>
> First one:
>
> for x in "$( ls Webcam_Pictures/*.png )" ; do echo "$x" ; done
>
> If that works, replace echo with rm.

That will likely not work, for the same reasons as above.  The 'ls  
Webcam_Pictures/*.png' part will fail.

> Second one:
>
> find Webcam_Pictures -iname *png -exec echo {} \;
>
> If that works, replace echo with rm.

probably OK...

Chris

>
> -- 
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users





More information about the ubuntu-users mailing list