From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,72be4e46459520b7 X-Google-Attributes: gidfee84,public From: Darron Shaffer Subject: Re: removing specific directoryies Date: 1997/11/21 Message-ID: #1/1 X-Deja-AN: 291279057 Sender: dshaffer@dalmoto4.beasys.com References: <33679957.6895@worldnet.att.net> <34751F8B.41C6@tesla.optus.com.au> <6541lc$tbn@zk2nws.zko.dec.com> Organization: BEA Systems, Inc. Newsgroups: comp.unix.osf.osf1 --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 > 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--