Article View: es.comp.os.linux.programacion
Article #1378Re: borrar recursivamente utilizando una mascara
From: AnimAlf
Date: Mon, 23 Jan 2006 22:42
Date: Mon, 23 Jan 2006 22:42
27 lines
1851 bytes
1851 bytes
El dl 23 de 01 del 2006 a les 22:05 +0100, en/na icue va escriure:
> Por ejemplo trato inocentemente de hacer esto:
> # rm *.bak -rf
>
> Que no funciona, pero que se podrá hacer de algun modo.
con rm --help veras que tienes que escribirlo en otro orden.
pero creo que está pensado sólo para directorios
# rm -rf dir
borra el directorio y todo su contenido recursivamente
Tú lo que quieres conseguir es lo siguiente;
# find . -name "*.bak" -exec rm {} \;
Saludos
--
AnimAlf AnimAlf@engendro.sytes.net
http://www.fut.es/~acl/AnimAlf
Personal Experimental WebServer: http://www.engendro.sytes.net
LiNUX ReGiSteRED UseR #91326
PublicPGPkeyID 0xB3B41215
Is the truth out there?
Coalición europea contra el correo comercial no solicitado:
http://www.euro.cauce.org/es
Technical Details
Message-ID:
<1138055820.7843.6.camel@general.engendro.sytes.net>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!nsnmpen1-lo.nuria.telefonica-data.net!telenews.teleline.es!not-for-mailReferences:
<dr3gec$hjh$1@negre.bartolo>Show Full Headers
Complete Article Headers
X-Google-Thread: f86c8,4759451d56775892 X-Google-Attributes: gidf86c8,public X-Google-Language: SPANISH,UTF8 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!nsnmpen1-lo.nuria.telefonica-data.net!telenews.teleline.es!not-for-mail X-Trace-PostClient-IP: 80.32.76.249 Newsgroups: es.comp.os.linux.programacion Subject: Re: borrar recursivamente utilizando una mascara From: AnimAlf <AnimAlf@engendro.sytes.net> In-Reply-To: <dr3gec$hjh$1@negre.bartolo> References: <dr3gec$hjh$1@negre.bartolo> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Organization: Is the truth out there? Message-ID: <1138055820.7843.6.camel@general.engendro.sytes.net> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 Lines: 28 Date: Mon, 23 Jan 2006 22:42:27 GMT NNTP-Posting-Host: 10.20.31.4 X-Complaints-To: usenet@teleline.es X-Trace: telenews.teleline.es 1138056147 10.20.31.4 (Mon, 23 Jan 2006 23:42:27 MET) NNTP-Posting-Date: Mon, 23 Jan 2006 23:42:27 MET