[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [shell-script] Contando em shell
From: |
Felipe Kellermann |
Subject: |
Re: [shell-script] Contando em shell |
Date: |
Mon, 7 Jul 2003 18:21:28 -0300 (BRT) |
On Mon, 7 Jul 2003 4:01pm -0300, Mauricy Maiorino wrote:
> >
> Tentei fazer isto, mas ele esta preenchendo somente com zero, a saida
> esta ficando assim:
> 0) 16:00
> 0) 18:00
Já troquei para não usar o cat também,
*$ tail s temp_hora.dat
==> s <==
#!/bin/sh
while read i; do echo "$[++n]) $i"; done < $1
==> temp_hora.dat <==
16:00
18:00
19:30
20:00
21:00
21:30
22:00
22:30
23:00
$ !!:*
1) 16:00
2) 18:00
3) 19:30
4) 20:00
5) 21:00
6) 21:30
7) 22:00
8) 22:30
9) 23:00
$
--
Felipe Kellermann