Article View: es.comp.os.linux.programacion
Article #12303Re: argggggghhhh pues resulta que no
From: Antonio Villalon
Date: Wed, 08 Aug 2001 21:04
Date: Wed, 08 Aug 2001 21:04
57 lines
2964 bytes
2964 bytes
Carlos F. <carlosfNOSPAM@ucsd.com> wrote:
: Carlos F. wrote:
: creía que funcionaba porque había probado con una lista sin espacios, en
: una con espacios lo que hace es pasarle a md5sum todo el contenido de la
: lista como si fuera un único nombre ¿?
AGGGGGGGGGGGGGG mea culpa :)
Se interpreta como un unico nombre, correcto.
Un par de soluciones rapidas que funcionan aparentemente bien en SH de Solaris,
en bash no deberian dar problemas tampoco.
A:
El contenido de 'salida' es este:
$ cat salida
./directorio 1/prueba1
./directorio 2/prueba2
$
$ cat salida |awk '{printf ("\"%s\"\n",$0);}'|xargs /usr/sbin/md5
MD5 (./directorio 1/prueba1) = d41d8cd98f00b204e9800998ecf8427e
MD5 (./directorio 2/prueba2) = d41d8cd98f00b204e9800998ecf8427e
$
B:
$ find . -type f -exec /usr/sbin/md5 {} \;
MD5 (./directorio 1/prueba1) = d41d8cd98f00b204e9800998ecf8427e
MD5 (./directorio 2/prueba2) = d41d8cd98f00b204e9800998ecf8427e
$
Me voy a por un cafe, luego sigo mirando porque el tema me ha picado :)
Saludos,
Toni
--
#############################################################################
# Toni Villalon <toni@aiind.upv.es> #
# TELNET andercheran.aiind.upv.es 2895 for PGP Public Key #
#############################################################################
# "The bad reputation Unix has gotten is totally undeserved, laid on by #
# people who don't understand, who have not gotten in there and tried #
# anything." #
# Jim Joyce #
############# This .signature is written in 100% recycled bytes #############
Technical Details
Message-ID:
<9ks9go$4mj$1@polaris.cc.upv.es>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!130.59.214.20!news-ge.switch.ch!news.rediris.es!news.uv.es!news.upv.es!not-for-mailReferences:
<9krjsg$drq$1@talia.mad.ttd.net> <9krq20$s0v$1@polaris.cc.upv.es> <000sk9.8q.ln@carloshost> <9ks0aj$rhm$1@talia.mad.ttd.net>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,2e8fdb5c5b3f8074
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-08-08 22:49:36 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!130.59.214.20!news-ge.switch.ch!news.rediris.es!news.uv.es!news.upv.es!not-for-mail
From: Antonio Villalon <toni@andercheran.aiind.upv.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: argggggghhhh pues resulta que no
Date: 8 Aug 2001 21:04:24 GMT
Organization: U.P.V.
Lines: 57
Message-ID: <9ks9go$4mj$1@polaris.cc.upv.es>
References: <9krjsg$drq$1@talia.mad.ttd.net> <9krq20$s0v$1@polaris.cc.upv.es> <000sk9.8q.ln@carloshost> <9ks0aj$rhm$1@talia.mad.ttd.net>
NNTP-Posting-Host: andercheran.aiind.upv.es
Mime-Version: 1.0
Content-Type: text/plain; charset=ES-ASCII
Content-Transfer-Encoding: quoted-printable
X-Trace: polaris.cc.upv.es 997304664 4819 158.42.22.41 (8 Aug 2001 21:04:24 GMT)
X-Complaints-To: newsmaster@upv.es
NNTP-Posting-Date: 8 Aug 2001 21:04:24 GMT
User-Agent: tin/1.4.3-20000502 ("Marian") (UNIX) (Linux/2.2.19 (i586))