Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> OT - removing 25000 files !! - solved

OT - removing 25000 files !! - solved

From: Rahul <rahul_at_ratelindo.co.id>
Date: Wed, 20 Sep 2000 18:28:50 +0700
Message-Id: <10625.117422@fatcity.com>


it worked
did not have time to read the man pages... what does -n 20 imply ?

Thanks

Rahul

> ----------
> From: Jaap Reijm[SMTP:jaap.reijm_at_alh.nl]
> Sent: Wednesday, September 20, 2000 6:15 PM
> To: Rahul
> Cc: oracledba_at_lazydba.com
> Subject: Re: OT - removing 25000 files !!
>
>
>
> Hi Rahul,
>
> You can use xargs to achieve this:
>
> ls | xargs -n 20 rm
>
> or to filter on some filenames:
>
> ls | grep '^abc' | xargs -n 20 rm
>
> hth,
> Jaap
>
>
>
>
> Rahul <rahul_at_ratelindo.co.id> on 09/20/2000 12:06:41 PM
>
> To: 'Oracle List I' <ORACLE-L_at_fatcity.com>, 'Oracle List II'
> <oracledba_at_quickdoc.co.uk>
> cc: (bcc: Jaap Reijm/ALH)
>
> Subject: OT - removing 25000 files !!
>
>
>
> List, how can i remove 25,000 files from a unix directory ??
> if i try rm -f * it returns
> "ksh: /usr/bin/rm: 0403-027 The parameter list is too long"
>
> if i give wild card it would take too long....
> it's not a separate file system so i cannot unmount and remove the FS.
>
>
> TIA
>
> rahul
>
>
> --------
> If you're bored, then visit the list's website: http://www.lazydba.com
> (updated
> daily)
> to unsubscribe, send a blank email to oracledba-unsubscribe_at_quickdoc.co.uk
> to subscribe send a blank email to oracledba-subscribe_at_quickdoc.co.uk
Received on Wed Sep 20 2000 - 06:28:50 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US