shell-script-pt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [shell-script] sed imprimir um trecho (link) de um arquivo


From: Caio Silva
Subject: Re: [shell-script] sed imprimir um trecho (link) de um arquivo
Date: Fri, 25 Mar 2011 18:35:57 -0300

*Olá amigo...*
*
*
*Teste assim:*
*
*
*
$ cat /tmp/teste.txt
href="javascript:openNewWindow('<a href="
http://www.4shared.com/video/tTJrj6_H/000-Pica_Pau-ataca_novamente.html')"">
http://www.4shared.com/video/tTJrj6_H/000-Pica_Pau-ataca_novamente.html'
)"</a>
href="javascript:openNewWindow('<a href="
http://www.4shared.com/video/tTJrj6_H/000-Pica_Pau-ataca_novamente.html')"">
http://www.4shared.com/video/tTJrj6_H/000-Pica_Pau-ataca_novamente.html'
)"</a>

=>

$ cat /tmp/teste.txt | tr "\>" "\'" | awk -F "\'" '{ print $4 }'
awk: aviso: seqüência de escape `\'' tratada como `'' normal
http://www.4shared.com/video/tTJrj6_H/000-Pica_Pau-ataca_novamente.html
http://www.4shared.com/video/tTJrj6_H/000-Pica_Pau-ataca_novamente.html
http://www.4shared.com/video/tTJrj6_H/000-Pica_Pau-ataca_novamente.html
http://www.4shared.com/video/tTJrj6_H/000-Pica_Pau-ataca_novamente.html
*


2011/3/25 sergio <address@hidden>

> href="javascript:openNewWindow('<a href="
> http://www.4shared.com/video/tTJrj6_H/000-Pica_Pau-ataca_novamente.html
> ')"">
> http://www.4shared.com/video/tTJrj6_H/000-Pica_Pau-ataca_novamente.html
> ')"</a>
>


[As partes desta mensagem que não continham texto foram removidas]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]