Article View: es.comp.os.linux.programacion
Article #1548Re: como crear una barra de carga para un shell script
From: gews
Date: Fri, 28 Oct 2005 14:06
Date: Fri, 28 Oct 2005 14:06
18 lines
1884 bytes
1884 bytes
hola, logre hacer el shekl que necesitaba y es bastante sencillo lo
pueden hacer así:
function progreso () #crear una funcion (progreso)
{
typeset -i i=0
while [ $i -le "20" ] #creamos el ciclo
do
echo -e "\033[44m\033[30m \033[0m \\c" #coloca un espacio en color
azul que indique la barra de progreso
sleep 1 #damos un intervalo de 1 seg
i=i+1
done
}
#####Main#####
progreso # llamamos la funcion dentro del shell
Muchas gracias y espero que le sirva a alguien mas.
Technical Details
Message-ID:
<1130508376.472968.116690@g44g2000cwa.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!g44g2000cwa.googlegroups.com!not-for-mailReferences:
<1130368928.750496.309630@z14g2000cwz.googlegroups.com> <djq1sa$i3q$2@appleseed.escomposlinux.org> <1130424219.893568.59350@g44g2000cwa.googlegroups.com>Show Full Headers
Complete Article Headers
X-Google-Thread: f86c8,487123d0483c7bc0 X-Google-Attributes: gidf86c8,public X-Google-Language: SPANISH,ASCII Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!g44g2000cwa.googlegroups.com!not-for-mail From: "gews" <jeblancob@gmail.com> Newsgroups: es.comp.os.linux.programacion Subject: Re: como crear una barra de carga para un shell script Date: 28 Oct 2005 07:06:16 -0700 Organization: http://groups.google.com Lines: 19 Message-ID: <1130508376.472968.116690@g44g2000cwa.googlegroups.com> References: <1130368928.750496.309630@z14g2000cwz.googlegroups.com> <djq1sa$i3q$2@appleseed.escomposlinux.org> <1130424219.893568.59350@g44g2000cwa.googlegroups.com> NNTP-Posting-Host: 200.118.2.178 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1130508381 13893 127.0.0.1 (28 Oct 2005 14:06:21 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 28 Oct 2005 14:06:21 +0000 (UTC) In-Reply-To: <1130424219.893568.59350@g44g2000cwa.googlegroups.com> User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Maxthon),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g44g2000cwa.googlegroups.com; posting-host=200.118.2.178; posting-account=E9Y8MA0AAABqLee5qN5k8-VVLyd70rzW