Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Marek Pola <marek.pola@mailbox.swipnet.se>
To: Greg Green <ggreen.afis@worldnet.att.net>
Subject: Re: removing specific directoryies
Date: 1997/05/02	[thread overview]
Message-ID: <3369B9DD.F999A371@mailbox.swipnet.se> (raw)
In-Reply-To: 33679957.6895@worldnet.att.net


Greg Green wrote:
> 
> I need to remove specific directories from a particular subdirectory.  I
> tried using the command rm -rfi filename* and I was prompted with:
> 
>         bash: /sbin/rm: Arg list too long
> 
> Is there a way around this?  Is there a way to increase the size for
> this list even temporarily?  Must I delete one directory at a time until
> I get the list small enough?

You can do it in three ways:
1. If you want to delete all subdirs, go up one level and to rm -r
topdir.

2. Delete smaller number of directories at a time. I often manually have
to do "rm -r a*", "rm -r b*" etc.

3. Use find: "find . -name "filename*" -type d -exec rm -r {} \;".

Good luck.

/Marek



  reply	other threads:[~1997-05-02  4:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-04-30  4:00 removing specific directoryies Greg Green
1997-05-02  4:00 ` Marek Pola [this message]
     [not found] ` <34751F8B.41C6@tesla.optus.com.au>
1997-11-21  5:00   ` Andrew Duane USG/PE
1997-11-21  5:00     ` Darron Shaffer
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