🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #6673

Busqueda de directorio, y creacion de fichero index.html en Bash

#6673
From: Marco
Date: Sat, 24 May 2003 09:29
39 lines
2074 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Muchas veces utilizo bash, para el cambio de permisos de directorio o
fiichero, borrado de directorios recursivos, y otras cosas.

La tienda osCommerce, viene con ciertos defectos de fabrica, y no contiene
un fichero index.html en todos los directorios. Normalmente por seguridad
creo un fichero index.html con touch index.html en los directorios.


Ejemplos de uso:

find . -name CVS | xargs rm -Rf CVS
find . -type d | xargs chmod 755

Sin embargo no encuentro ejemplos para buscar en un arbol de directorios, y
crear el index.html con touch ...

Alguien sabe, de algun sitio o ejemplos ?

Gracias.


- -- 
- --
Marco A. Mateos - Linux User: 209189
http://www.lomejordeinternet.net - SIM, S.L.
http://hosting.lomejordeinternet.net/
http://graficas.lomejordeinternet.net/
webmaster@lomejordeinternet.net / ICQ: 172542875
Clave Publica disponible en http://www.lomejordeinternet.net/pgp
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+zzuByEVqTu+tVqsRAnW9AJ9XobyMvqjr9AAdciEn2+1b+pzxEACfRUmh
m2n3OFKJGdX/NVY+kxQVhwI=
=e0zV
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <bandvg$1j68k$1@ID-187527.news.dfncis.de>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!80-25-130-25.uc.nombres.ttd.ES!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII-7-bit
X-Google-Thread: f86c8,b13c0a8cd2fc6596,start
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2003-05-24 02:28:18 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!80-25-130-25.uc.nombres.ttd.ES!not-for-mail
From: Marco <marco@lomejordeinternet.net>
Newsgroups: es.comp.os.linux.programacion
Subject: Busqueda de directorio, y creacion de fichero index.html en Bash
Date: Sat, 24 May 2003 11:29:37 +0200
Organization: Soluciones Impresas para Marketing, S.L.
Lines: 39
Message-ID: <bandvg$1j68k$1@ID-187527.news.dfncis.de>
NNTP-Posting-Host: 80-25-130-25.uc.nombres.ttd.es (80.25.130.25)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
X-Trace: fu-berlin.de 1053768496 1677588 80.25.130.25 (16 [187527])
User-Agent: KNode/0.7.2