[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [shell-script] Parâmetros
From: |
Felipe Kellermann |
Subject: |
Re: [shell-script] Parâmetros |
Date: |
Sun, 16 Nov 2003 15:56:46 -0200 (BRST) |
On Sun, 16 Nov 2003 2:35pm -0000, jefferson_th wrote:
> posso pegar o ultimo parâmetro, de uma lista de tamanho
> indeterminado, e fazer uma comparação com uma string. Se alguém poder
$ set a b c d & eval eval echo \$${#*}
d
$ s=$* && echo ${s##* }
d
$ shift $(($#* - 1)) && echo $1
d
--
Felipe Kellermann
- Parâmetros, jefferson_th, 2003/11/16
- Re: [shell-script] Parâmetros,
Felipe Kellermann <=