Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Darron Shaffer <darron.shaffer@beasys.com>
Subject: Re: removing specific directoryies
Date: 1997/11/21	[thread overview]
Message-ID: <ne67pmvvhu.fsf@dalmoto4.beasys.com> (raw)
In-Reply-To: 6541lc$tbn@zk2nws.zko.dec.com


--Multipart_Fri_Nov_21_14:30:50_1997-1
Content-Type: text/plain; charset=US-ASCII

duane@hunch.zk3.dec.com (Andrew Duane USG/PE) writes:

> In article <34751F8B.41C6@tesla.optus.com.au> Jarra Voleynik 
>		<tsg_jxv@tesla.optus.com.au> writes:
> >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 cannot increase the arg list size at all.
> 
> You can do [a-m]*, then [n-z]*, or whatever, to break the list
> up into two or three pieces; no need to resort to one at a time.
> 

The standard solution to problems of this type is the 'xargs' utility.

	ls filename* | xargs rm -rfi

Good luck,
Darron


--Multipart_Fri_Nov_21_14:30:50_1997-1
Content-Type: text/plain; charset=US-ASCII

 __  __  _          
 _ ) ___ _\ 		 			
 __) __    \  Enterprise Middleware Solutions	Darron J. Shaffer
              BEA Systems Inc.			Sr. Software Engineer
              17101 Preston Rd			darron.shaffer@beasys.com 
              LB# 115, Ste 260	 		Voice: (972) 738-6137     
              Dallas, TX 75248 			Fax:   (972) 738-6111     
	      http://www.beasys.com

--Multipart_Fri_Nov_21_14:30:50_1997-1--



      reply	other threads:[~1997-11-21  5: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
     [not found] ` <34751F8B.41C6@tesla.optus.com.au>
1997-11-21  5:00   ` Andrew Duane USG/PE
1997-11-21  5:00     ` Darron Shaffer [this message]
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