|
From: | 빠는 Leonardo Goretti |
Subject: | Re: [shell-script] colunas |
Date: | Thu, 12 Dec 2013 16:18:09 -0200 |
e se vc trocar o \n do printf por um \t ?e se vc fizer | paste - - - - - - - - - - - - ?2013/12/12 빠는 Leonardo Goretti <address@hidden>
GratoEm uma única coluna, e minha necessidade é de saídas lado a ladoFala Thiago.Pois é... a saída ficou assim...
21-helochecks
22-ip-access
23-liberados
24-LICENSE
25-main.cf
26-main.cf_20130727
21-helochecks 22-ip-access 23-liberados 24-LICENSE 25-main.cf 26-main.cf_20130727
Em 12 de dezembro de 2013 16:06, Tiago Peczenyj <address@hidden> escreveu:
NR no lugar de ++i no awk tambem funciona.2013/12/12 Tiago Peczenyj <address@hidden>
talvez isso ajudels | cat -n | awk '{printf "%02d-%s\n",$1,$2}'
ls | awk '{printf "%02d-%s\n",++i,$1}'2013/12/12 빠는 Leonardo Goretti <address@hidden>gratoAlguma idéia.ja tentei com column,.. pr ..... awk, mas não achei...01-arquivo_A 02-arquivo_B ,........# lsMinha necessidadearquivo_A arquivo_B arquivo_C#lsBoa tarde.Em parte do script preciso que a saida do comando ls saia numerada,
ex comun
--Leonardo Goretti
Celular: +55 (61) 9249 6161Analista de infraestrutura - GNU/LINUX mais2x.comInstrutor GNU/LINUX
Gtalk: address@hidden
----------------------------------------------Linux Certification (LPIC-1)Novell Certified Linux Administrator (CLA)Novell Data Center Technical Specialist
--
Tiago B. Peczenyj
Linux User #405772
http://about.me/peczenyj
--Leonardo Goretti
Celular: +55 (61) 9249 6161Analista de infraestrutura - GNU/LINUX mais2x.comInstrutor GNU/LINUX
Gtalk: address@hidden
----------------------------------------------Linux Certification (LPIC-1)Novell Certified Linux Administrator (CLA)Novell Data Center Technical Specialist
--
Tiago B. Peczenyj
Linux User #405772
http://about.me/peczenyj
--Leonardo Goretti
Celular: +55 (61) 9249 6161Analista de infraestrutura - GNU/LINUX mais2x.comInstrutor GNU/LINUX
Gtalk: address@hidden
----------------------------------------------Linux Certification (LPIC-1)Novell Certified Linux Administrator (CLA)Novell Data Center Technical Specialist
[Prev in Thread] Current Thread [Next in Thread]
- colunas, 빠는 Leonardo Goretti, 2013/12/12
- Re: [shell-script] colunas, Tiago Peczenyj, 2013/12/12
- Re: [shell-script] colunas, Tiago Peczenyj, 2013/12/12
- Re: [shell-script] colunas, 빠는 Leonardo Goretti, 2013/12/12
- Re: [shell-script] colunas, Tiago Peczenyj, 2013/12/12
- Re: [shell-script] colunas, 빠는 Leonardo Goretti <=
- Re: [shell-script] colunas, Tiago Peczenyj, 2013/12/12
- Re: [shell-script] colunas, 빠는 Leonardo Goretti, 2013/12/12
- Re: [shell-script] colunas, Adolfo Verçosa, 2013/12/12
- Prev by Date: Re: [shell-script] colunas
- Next by Date: Re: [shell-script] colunas
- Previous by thread: Re: [shell-script] colunas
- Next by thread: Re: [shell-script] colunas
- Index(es):