|
From: | Rodrigo Cunha |
Subject: | Re: [shell-script] Manipulação de strings |
Date: | Thu, 25 Apr 2019 10:20:29 -0300 |
Sim, mas pintou outro problema para mim...
Minha data, atualmente é registrada assim: 04252019014726, onde os ultimos 6 digitos são referentes a hora.Em qui, 25 de abr de 2019 às 10:11, Guilherme Gall address@hidden [shell-script] <address@hidden> escreveu:Tipo isso?
$ echo '002811
012911
031010' | sed -r 's_(..)(..)(..)_\1:\2:\3_'
00:28:11
01:29:11
03:10:10
Atenciosamente,
Guilherme Gall
Em qui, 25 de abr de 2019 às 10:00, Rodrigo Cunha
address@hidden [shell-script]
<address@hidden> escreveu:
>
>
>
> Prezados, preciso manipular um arquivo com varias strings, do tipo:
> 002811
> 012911
> 031010
> E transforma-los para o tipo: hora:minuto:segundo.
>
> --
> Atenciosamente,
> Rodrigo da Silva Cunha
> São Gonçalo, RJ - Brasil
--Atenciosamente,
Rodrigo da Silva CunhaSão Gonçalo, RJ - Brasil--Atenciosamente,
Rodrigo da Silva CunhaSão Gonçalo, RJ - Brasil
[Prev in Thread] Current Thread [Next in Thread]
- Manipulação de strings, Rodrigo Cunha, 2019/04/25
- Re: [shell-script] Manipulação de strings, Guilherme Gall, 2019/04/25
- Re: [shell-script] Manipulação de strings, Rodrigo Cunha, 2019/04/25
- Re: [shell-script] Manipulação de strings, Rodrigo Cunha <=
- Re: [shell-script] Manipulação de strings, itamarnet, 2019/04/25
- Re: [shell-script] Manipulação de strings, Paulo, 2019/04/25
- Re: [shell-script] Re: [shell-script] Manipulação de strings, Rodrigo Cunha, 2019/04/25
- Re: [shell-script] Re: [shell-script] Manipulação de strings, Paulo, 2019/04/27
- Re: [shell-script] Re: [shell-script] Re: [shell-script] Manipulação de strings, Julio C. Neves, 2019/04/28
- Re: [shell-script] Manipulação de strings, Alfredo Casanova, 2019/04/25
- Re: [shell-script] Manipulação de strings, Alfredo Casanova, 2019/04/25
- Re: [shell-script] Manipulação de strings, T.Collons, 2019/04/26
- Prev by Date: Re: [shell-script] Manipulação de strings
- Next by Date: Re: [shell-script] Manipulação de strings
- Previous by thread: Re: [shell-script] Manipulação de strings
- Next by thread: Re: [shell-script] Manipulação de strings
- Index(es):