🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: bash y passwd

#7903
From: PiKaChU
Date: Sun, 19 Jan 2003 10:49
12 lines
1303 bytes
Hola,

A mi me funciona as�:

if [ `grep -c "^${alumno}:" /etc/passwd` -gt 0 ]; then 
	echo "encontrado"
else
	echo "NO encontrado"
fi

Saludos
Technical Details
Message-ID: <pan.2003.01.19.10.49.06.948421@HisHome.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!nsnmpen1-lo.nuria.telefonica-data.net!nsnmpen2-lo.nuria.telefonica-data.net!not-for-mail
References: <2conf-lb2.ln1@paldaria.dsland.org>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f86c8,a0ddc9dad727a552
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2003-01-19 02:47:29 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!nsnmpen1-lo.nuria.telefonica-data.net!nsnmpen2-lo.nuria.telefonica-data.net!not-for-mail
From: "PiKaChU" <PiKaChU@HisHome.com>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: bash y passwd
Date: Sun, 19 Jan 2003 11:49:08 +0100
Organization: Telefonica Data Espagna
Lines: 12
Message-ID: <pan.2003.01.19.10.49.06.948421@HisHome.com>
References: <2conf-lb2.ln1@paldaria.dsland.org>
NNTP-Posting-Host: 38.red-80-32-104.pooles.rima-tde.net
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
X-Trace: nsnmpen2-gest.nuria.telefonica-data.net 1042973248 9115 80.32.104.38 (19 Jan 2003 10:47:28 GMT)
X-Complaints-To: usenet@nsnmpen2-gest.nuria.telefonica-data.net
NNTP-Posting-Date: Sun, 19 Jan 2003 10:47:28 +0000 (UTC)
User-Agent: Pan/0.13.0 (The whole remains beautiful)