Article View: es.comp.os.linux.programacion
Article #7887Re: bash y passwd
From: catactttc
Date: Sat, 18 Jan 2003 16:57
Date: Sat, 18 Jan 2003 16:57
18 lines
1409 bytes
1409 bytes
In article <2conf-lb2.ln1@paldaria.dsland.org>, Pacolinx wrote:
> ---------------
> alumno=juanito
en lugar de:
> if grep "^${alumno}:" /etc/passwd
usa:
if egrep -q "^${alumno}:" /etc/passwd
> then
> echo "El usuari " $alumno " ya existe"
> else
> echo "El usuari " $alumno " no existe"
> fi
> ----------------
Technical Details
Message-ID:
<slrnb2j20e.39.catactttc@paleo.chiti.org>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!mephistopheles.news.clara.net!news.clara.net!diablo.netcom.net.uk!netcom.net.uk!easynet-melon!easynet.net!news.rediris.es!news.uv.es!not-for-mailReferences:
<2conf-lb2.ln1@paldaria.dsland.org>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f86c8,a0ddc9dad727a552 X-Google-Attributes: gidf86c8,public X-Google-ArrivalTime: 2003-01-18 08:59:15 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!mephistopheles.news.clara.net!news.clara.net!diablo.netcom.net.uk!netcom.net.uk!easynet-melon!easynet.net!news.rediris.es!news.uv.es!not-for-mail From: catactttc <catactttc@nospam.aqui.com> Newsgroups: es.comp.os.linux.programacion Subject: Re: bash y passwd Date: Sat, 18 Jan 2003 16:57:24 +0000 (UTC) Organization: Universitat de Valencia Lines: 19 Distribution: es Message-ID: <slrnb2j20e.39.catactttc@paleo.chiti.org> References: <2conf-lb2.ln1@paldaria.dsland.org> NNTP-Posting-Host: 213-99-156-157.uc.nombres.ttd.es X-Trace: peque.uv.es 1042909044 8817 213.99.156.157 (18 Jan 2003 16:57:24 GMT) X-Complaints-To: newsmanager@uv.es NNTP-Posting-Date: Sat, 18 Jan 2003 16:57:24 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux)