Article View: es.comp.os.linux.programacion
Article #7152Re: ayuda con script...
From: J.A. Gutierrez
Date: Wed, 02 Apr 2003 19:29
Date: Wed, 02 Apr 2003 19:29
28 lines
2052 bytes
2052 bytes
juanma <juanmasg@arrakis.es> wrote: : Hola, eso puedes hacerlo con test -f: : if test -f /ruta/* ; then : # lo que sea cuando hay ficheros : else : # lo que sea cuando no hay ficheros : fi y si hay ficheros que empiecen por '.'? y si hay directorios? : man test :). google -> Newsgroups: es.comp.os.linux.programacion From spd Mon Mar 4 10:28:36 2002 > test `ls -1f | wc -l` -ne 2 && echo no vacio || echo vacio > rmdir $dir && ( echo vacio; mkdir $dir ) || echo no vacio -- finger spd@shiva.cps.unizar.es for PGP / .mailcap tip of the day: / La vida es una carcel application/ms-tnef; cat '%s' > /dev/null / con las puertas abiertas text/x-vcard; cat '%s' > /dev/null / (A. Calamaro)
Technical Details
Message-ID:
<b6fdm2$ir4$3@localhost.escomposlinux.org>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!kibo.news.demon.net!demon!diablo.theplanet.net!newspeer.lavaseals.co.uk!nntp.theplanet.net!inewsm1.nntp.theplanet.net!easynet-monga!easynet.net!proxad.net!proxad.net!news-hub.cableinet.net!blueyonder!marmolejo.escomposlinux.org!not-for-mailReferences:
<pan.2003.04.02.18.35.28.658710@terra.com> <b6fckc$4n5in$1@ID-184714.news.dfncis.de>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII-7-bit
X-Google-Thread: f86c8,6351b339ff6842aa
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2003-04-02 11:29:08 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!kibo.news.demon.net!demon!diablo.theplanet.net!newspeer.lavaseals.co.uk!nntp.theplanet.net!inewsm1.nntp.theplanet.net!easynet-monga!easynet.net!proxad.net!proxad.net!news-hub.cableinet.net!blueyonder!marmolejo.escomposlinux.org!not-for-mail
From: "J.A. Gutierrez" <spd@daphne.cps.unizar.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: ayuda con script...
Date: Wed, 2 Apr 2003 19:29:06 +0000 (UTC)
Organization: Rank
Lines: 28
Sender: "J.A. Gutierrez" <spd@shiva.cps.unizar.es>
Message-ID: <b6fdm2$ir4$3@localhost.escomposlinux.org>
References: <pan.2003.04.02.18.35.28.658710@terra.com> <b6fckc$4n5in$1@ID-184714.news.dfncis.de>
NNTP-Posting-Host: shiva.cps.unizar.es
X-Trace: localhost.escomposlinux.org 1049311746 19300 155.210.152.10 (2 Apr 2003 19:29:06 GMT)
X-Complaints-To: newsmaster@marmolejo.escomposlinux.org
NNTP-Posting-Date: Wed, 2 Apr 2003 19:29:06 +0000 (UTC)
User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (IRIX64/6.2 (IP19))