From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,dd9d6b75705fafda X-Google-Attributes: gidfee84,public From: noyd@u.washington.edu (Steve Jones) Subject: Re: HELP with remove (rm) Date: 1997/02/13 Message-ID: <5e03i8$m6l@nntp1.u.washington.edu>#1/1 X-Deja-AN: 218603611 References: <3300ea4e.9049223@snews.zippo.com> <33037089.68BD@pangea.stanford.edu> Organization: University of Washington, Seattle NNTP-Posting-User: noyd Newsgroups: comp.unix.osf.osf1 In article <33037089.68BD@pangea.stanford.edu>, Phil Farrell wrote: >Achachila wrote: >> Sorry but I am new to Digital Unix, could anyone tell me how can I rm >> 1000 of files without getting Arg. list to long? >> I need to rm something like *96* > >Try: > find /directory-with-your-files -name "*96*" -exec rm {} \; >This will traverse the directory tree and match and remove files >one by one, rather than trying to make one giant command line >listing all the files. See also the "xargs" command for avoiding the limit on the size of the argument list in your shell. For example: ls | grep 96 | xargs rm -- -- Steven Jones Computing & Communications 354843, University of Washington E-mail: noyd@u.washington.edu Phone: (206) 543-5852