Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: "Josef Faulkner" <panther@gate.net>
Subject: Re: Deleting many files with rm
Date: Thu, 17 Aug 2000 00:33:38 -0400	[thread overview]
Message-ID: <spmqoh61r5j105@news.supernews.com> (raw)
In-Reply-To: 8mbaa1$b09$1@nnrp1.deja.com

ls -1 | awk '{ print "rm "$0 }' | sh

You can even test your intentions by replacing "sh" with "more"

--
Josef Faulkner
panther@gate.net


<andrew.rycroft@intrinsitech.com> wrote in message
news:8mbaa1$b09$1@nnrp1.deja.com...
> Hi,
>
> I am trying to delete files (with rm * ) from a directory which
> contains many files. I get the following error messages :-
>
> ksh: /sbin/rm: arglist too long
>
> Is there any other way of doing this other than writing a script to
> delete the files a*, b*, c* etc. ?
>
> What is the maximum no. of files I can delete ?
>
> I also hit a similar limitation with tar !
>
> Appreciate any input.
>
> Thanks
>
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.




  parent reply	other threads:[~2000-08-17  4:33 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-08-03  4:00 Deleting many files with rm andrew.rycroft
2000-08-03  4:00 ` Eckhardt Wallmeroth
2000-08-03  4:00   ` Tony Verhulst
2000-08-04  4:00   ` David Schmitt
2000-08-03  4:00 ` Jeff Wilson
2000-08-04  4:00 ` hin-tak.leung@bt.com
2000-08-04  4:00   ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
2000-08-06  4:00     ` Timo Felbinger
2000-08-06  4:00       ` John F Carr
2000-08-07  4:00         ` Timo Felbinger
2000-08-17  4:33 ` Josef Faulkner [this message]
2000-08-18  0:45   ` Richard M. Alderson III
2000-08-18  4:00     ` Tony Verhulst
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox