ls program* | xargs -n 20 rm
Andy Carlson |\ _,,,---,,_
Senior Technical Specialist ZZZzz /,`.-'`' -. ;-;;,_
BJC Health Care |,4- ) )-,_. ,\ ( `'-'
St. Louis, Missouri '---''(_/--' `-'\_)
Cat Pics: http://andyc.dyndns.org/animal.html
On Wed, 10 Jul 2002, Al'shaebani, Bassam wrote:
> Hello All,
> I'm came across an issue yesteday, does anyone know a way around
> deleting a large number of files without getting the 'parameter too
> long'
> message. i.e. I was trying to delete all the file that began with
> program*.
> There were too many files, so I had to actually cut my search down, to
> something like program01* and so forth, to avoid the error message.
>
> Thanks......
>
> Regards,
> Bassam
>
|