![]() |
Olá e boas-vindas de Estados Unidos para o UNIX e Linux Forum! Obrigado por visitar e fazer parte da nossa comunidade global.
|
|
google unix.com
|
|||||||
| Fóruns | Registar | Fórum Regimento | Ligações | Álbuns | FAQ | Lista deputados | Calendário | Pesquisa | Today's Posts | Mark Forums Read |
| Programação Shell Script e Post perguntas sobre ksh, CSH, SH, BASH, Perl, PHP, SED, Awk e outros scripts shell e shell scripts línguas aqui. |
Mais UNIX e Linux Fórum Tópicos Você pode achar Helpfull
|
||||
| Fio | Thread Starter | Fórum | Respostas | Última postagem |
| Atribuir o / p de awk para uma variável | c2b2 | Programação Shell Script e | 8 | 04-01-2009 07:50 |
| atribuir um valor a uma variável | Shivdatta | Programação Shell Script e | 10 | 01-17-2007 07:40 |
| atribuir valor à variável utilizando Awk | HAA | Programação Shell Script e | 4 | 12-06-2006 11:43 |
| atribuir um valor à variável | markjason | Programação Shell Script e | 3 | 10-10-2006 02:05 |
| atribuir a variável | AkumaTay | UNIX para Dummies Perguntas & Respostas | 1 | 05-18-2002 02:11 |
![]() |
|
|
Linkback | Thread Tools | Pesquisar este Thread | Rate Thread | Display Modes |
|
|
|
|||||
|
Aqui está um exemplo:
Código:
month_to_num() {
if [ -n "$1" ]
then
t_month=$1
case $t_month in
Jan) return 01;;
Feb) return 02;;
Mar) return 03;;
Apr) return 04;;
May) return 05;;
Jun) return 06;;
Jul) return 07;;
Aug) return 08;;
Sep) return 09;;
Oct) return 10;;
Nov) return 11;;
Dec) return 12;;
*) return 0;;
esac
fi
}
Código:
month_to_num $time_month v_month_index=$? Última edição por Dhruva; em 09/29/2006 04:57.. Motivo: typo |
![]() |
| Marcadores |
| Thread Tools | Pesquisar este Thread |
| Display Modes | Esta taxa Thread |
|
|