[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [shell-script] Sed e Regex
From: |
Ricardo Brito do Nascimento |
Subject: |
Re: [shell-script] Sed e Regex |
Date: |
Fri, 30 May 2008 15:27:16 -0300 |
User-agent: |
Thunderbird 2.0.0.5 (X11/20070719) |
deste modo também pode ser assim, separado com ponto-e-virgula:
echo "fatima 09033437787 5c4o2ge-jr3xip-fgpob53a-1-fgq46oxz-ucw
2008/05/27"| sed -e 's/ /@/g; s/@/ /; s/@/ "/; s/@/" /'
------------------------------------------------------------------------
Bem-aventurado o homem, SENHOR, a quem tu repreendes, a quem ensinas a
tua lei; (Salmo 94.12)
Blessed is the man you discipline, O LORD, the man you teach from your
law; (Psalm 94.12)
Jesus te ama, aceite-O! Jesus loves you, accept you Him!
Ivan lopes escreveu:
$ cat a.txt | sed -e 's/ /@/g' -e 's/@/ /' -e 's/@/ "/' -e 's/@/" /'
-e 's/@/ /g'
--
[]'s
Ivan Carlos da Silva Lopes
Engenheiro Eletrônico e de Computação
blog --> http://lopesivan.blogspot.com/ <http://lopesivan.blogspot.com/>
- Sed e Regex, Adelson O. Junior, 2008/05/30
- Re: [shell-script] Sed e Regex, Tiago Barcellos Peczenyj, 2008/05/30
- Re: [shell-script] Sed e Regex, Adelson O. Junior, 2008/05/30
- Re: [shell-script] Sed e Regex, Ivan lopes, 2008/05/30
- Re: [shell-script] Sed e Regex, Adelson O. Junior, 2008/05/30