Mailinglist Archive: opensuse (2459 mails)

< Previous Next >
Re: [opensuse] /bin/rm: Argument list too long
  • From: Randall R Schulz <rschulz@xxxxxxxxx>
  • Date: Wed, 26 Mar 2008 13:17:18 -0700
  • Message-id: <200803261317.18879.rschulz@xxxxxxxxx>
On Wednesday 26 March 2008 13:08, Per Jessen wrote:
Istvan Gabor wrote:
...

How can I delete these files w/o removing the folder itself?

ls -1 .thumbnails/large/* | while read f; do rm $f; done

This is as slow as the find -exec approach and vulnerable to files with
spaces and other special characters in their names.

The find + xargs approach is still the best for circumstances like this.


Randall Schulz
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups