|
From: | Tiago Tarifa |
Subject: | Re: [shell-script] Re: Contador do Shell |
Date: | Mon, 27 Feb 2017 08:20:57 -0300 |
Caro Tiago
Acho que nesse caso tem de usar o printf:
while read linha
do
cont=$((cont + 1))
mv "$linha" $(printf "%03d_${linha}" $cont)
done
Ai pode usar o let para a soma que também funciona
Isso lhe atende?
[]'s
Itamar
[Prev in Thread] Current Thread [Next in Thread]
- Contador do Shell, Tiago Tarifa, 2017/02/25
- Re: Contador do Shell, itamarnet, 2017/02/25
- Re: [shell-script] Re: Contador do Shell, Tiago Tarifa <=
- Prev by Date: Re: [shell-script] Re: Unir centenas de arquivos hosts em um unico arquivo
- Next by Date: Re: [shell-script] Re: Unir centenas de arquivos hosts em um unico arquivo
- Previous by thread: Re: Contador do Shell
- Index(es):