|
From: | Julio C. Neves |
Subject: | Re: [shell-script] [ Output ] Tabulação |
Date: | Sat, 7 Sep 2013 15:01:26 -0300 |
git_arq_log="log.txt"A solucao que fiz ontem foi essa !Fale Raphael,No caso da date voce consegue fazer isso, o problea eh quando voce usa um comando que tem uma saida com mais de 1 linha, ex: ls -ltrah...
$comando_git_log > $git_arq_log
while read linha
do
echo -n " "; echo $linha
done < $git_arq_log
rm $git_arq_logAbracos !Em 7 de setembro de 2013 02:59, Raphael Rabelo <address@hidden> escreveu:
Gustavo,Veja se é isso que vc precisa:~$ echo -e "\t$(date)"Sáb Set 7 02:57:30 BRT 2013~$ echo -e "\t$(date);\n\t$(date)"Sáb Set 7 02:57:38 BRT 2013;Sáb Set 7 02:57:38 BRT 2013O "\t" faz a tabulação, e o "\n" exibe em uma nova linha.Att.RabeloEm 7 de setembro de 2013 01:06, William Alves dos Santos <address@hidden> escreveu:
Claro que é possível
Em 06/09/2013 22:59, "Gustavo Filgueiras" <address@hidden> escreveu:Att,Colocar a saída assim:Caros,Alguém sabe informar se eu consigo tabular uma saída de comando, exemplo:
~$ date
Sex 6 Set 2013 22:57:22 BRT
~$ date
Sex 6 Set 2013 22:57:22 BRT
Gustavo
[Prev in Thread] Current Thread [Next in Thread]
- Re: [shell-script] Re: [ Output ] Tabulação, (continued)
- Re: [shell-script] Re: [ Output ] Tabulação, Gustavo Filgueiras, 2013/09/08
- Re: [shell-script] Re: [ Output ] Tabulação, Julio C. Neves, 2013/09/09
- Re: [shell-script] Re: [ Output ] Tabulação, Alfredo Casanova, 2013/09/08
- Re: [shell-script] Re: [ Output ] Tabulação, Tiago Peczenyj, 2013/09/08
Re: [shell-script] Re: [ Output ] Tabulação, Ernander (Nander), 2013/09/07
- Re: [shell-script] Re: [ Output ] Tabulação, Ernander (Nander), 2013/09/07
Re: [shell-script] [ Output ] Tabulação, William Alves dos Santos, 2013/09/07
- Re: [shell-script] [ Output ] Tabulação, Raphael Rabelo, 2013/09/07
- Re: [shell-script] [ Output ] Tabulação, Gustavo Filgueiras, 2013/09/07
- Re: [shell-script] [ Output ] Tabulação, Fabio R. Medeiros, 2013/09/07
- Re: [shell-script] [ Output ] Tabulação, Julio C. Neves <=
Re: [shell-script] [ Output ] Tabulação, Tiago Peczenyj, 2013/09/07
- Prev by Date: Re: [shell-script] [ Output ] Tabulação
- Next by Date: Re: [shell-script] Re: [ Output ] Tabulação
- Previous by thread: Re: [shell-script] [ Output ] Tabulação
- Next by thread: Re: [shell-script] [ Output ] Tabulação
- Index(es):