què? fent campanya un cop acabades les votacions? xD

- Blackhold
http://marsupi.org
~> conquerint l'aire, alliberant les ones.



On Mon, Nov 29, 2010 at 17:34, Ferran <fer...@fompi.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> On 29/11/10 17:08, Jose Luis Perez Diez wrote:
>> ¿que expresion regular estas usando?
>>
>> Un ejemplo minimalista que presente el problema  tambien ayudaria a entender
>> que pasa.
>
> Cierto ;)
>
> $> find * -type f -print0 |xargs -0 grep -A1 PIRATA.CAT|grep vots
> Viladecans.html-                        <td class="vots">54</td>
> Viladecavalls.html-                     <td class="vots">14</td>
> ...
>
> $> find * -type f -print0 |xargs -0 grep -A1 PIRATA.CAT|grep vots|sed
> - -e's/^\(.*\)\.html-.*vots">\([^<]*\).*/\2 -- \1/'
> 0 -- Sora
> Súria.html-                             <td class="vots">3</td>
> ...
>
> Urmfs. Acabo de ver que el problema es del encoding...
>
> noi ~/0_pirata/resul/barna 15693 $> find * -type f -print0 |xargs -0
> grep -A1 PIRATA.CAT|grep vots > AJ
> noi ~/0_pirata/resul/barna 15694 $> file AJ
> AJ: ISO-8859 text, with CRLF line terminators
> noi ~/0_pirata/resul/barna 15695 $> sed
> - -e's/^\(.*\)\.html-.*vots">\([^<]*\).*/\2 -- \1/' AJ |grep Vicen
> Sant Vicenç de Castellet.html-                  <td class="vots">5</td>
> Sant Vicenç dels Horts.html-                    <td class="vots">5</td>
> Sant Vicenç de Montalt.html-                    <td class="vots">2</td>
> Sant Vicenç de Torelló.html-                    <td class="vots">0</td>
> noi ~/0_pirata/resul/barna 15696 $> recode l1..u8 AJ
> noi ~/0_pirata/resul/barna 15697 $> sed
> - -e's/^\(.*\)\.html-.*vots">\([^<]*\).*/\2 -- \1/' AJ |grep Vicen
> 5 -- Sant Vicenç de Castellet
> 5 -- Sant Vicenç dels Horts
> 2 -- Sant Vicenç de Montalt
> 0 -- Sant Vicenç de Torelló
>
> Entonces... ¿Si cambio el locale lo pillará? ¿Hay alguna forma de
> pillarlo del tirón?
>
>
>
>
>
> - --
> Abordemos el parlamento! -- http://pirata.cat
> En democracia, dos Belén Esteban valen más que tú
> Di NO al top-posting!
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQIcBAEBCAAGBQJM89YWAAoJEAWOKfEESaOwtoMQALoYQ+FOOC3Xld6/VySe9mbN
> 2e0V2r+xYaKFjpoXXZvX1T0m7oteeAZ9uEP46hMKpnDNDzw7TJadTYtECKznKA3y
> VVW7bescKB0Blmq9yPZwqDgyW/M9fguj7Z+2MoyPqPIJJ/z+i+3pIDB0HqXdIPuA
> TVH54K139XTcJdAyFZj2vo05DIwP1fVzYmQgq8JGyBhCiQ+yzXYpV9Ph9B5ah3az
> z/DliyM7cwRmCqaW6us3+W2uqfYXMgvMjHM09Yu/mQh2zfh785Zumf/egHQUK5Dl
> Gqo/W4bHuRYVn/1jXzSAVaFLC5cgpa56PCRqJSNkKKs0ch1/Q81OQAEAfiXJ6+kr
> NUq6OQ/SvEAN/AsUq3W8dIv4WZuaTV1zgjJn2OuuyAxSq5xhY5bzsF5gFg7XzKA+
> TiS8TSVUsZIubBsfw+Vz9o+pDNUcRybEJdRzTLFw3ezbqMbH5CwL7j5lrYXZ2aFL
> xl0w8dqVnaaW1EDEBmCIyyi4dJnPffuuigZQm1lJD89w1/28pokQlZvr2LU40z7E
> UCxUqc2LqRFZFFuDZWY2rcUR+cHwcaVLbWWwdhxIw0hOoBnVYBbhSTDk9+zdmjub
> /q/CFxhmDZXq0KtLOY3//+MaX0vy59pIov3iQe6NrVYs6BJY4L4XW1Dsw6ySHj5S
> XOEl6Tou01vWftPiGqWy
> =ipXh
> -----END PGP SIGNATURE-----
> --
> _______________________________________________
> Comandob mailing list
> Comandob@badopi.org
> http://lists.badopi.org/mailman/listinfo/comandob
--
_______________________________________________
Comandob mailing list
Comandob@badopi.org
http://lists.badopi.org/mailman/listinfo/comandob

Reply via email to