Argument list too long - help
christopher.rob.jones at cern.ch
Wed Jun 10 19:00:46 UTC 2009
On 10 Jun 2009, at 7:48pm, Carl Friis-Hansen wrote:
> I just discovered that ZoneManager has stored some 87000 png files
> in a
> directory. I have no use of them and wanted to remove them.
> That turned out not to be so strait forward:
> carl at cjfh3:~$ rm Webcam_Pictures/*.png
> bash: /bin/rm: Argument list too long
> carl at cjfh3:~$
> How do I best come around this issue ?
> cd ~/Webcam_Pictures
> ls *.png | xargs rm
p.s. see 'man xargs' for details on the above
More information about the ubuntu-users