Ir al contenido principal

Entradas

Mostrando entradas de noviembre, 2013

CVS desde la línea de comandos

Software: http://www.nongnu.org/cvs/ Login cvs -d:método_acceso*:user@host:/path login Emitir un log de tags: archivo, revisión actual head, branch y su revisión actual, todas las revisiones cvs -d:método_acceso*:user@host:/path_1 rlog path_2 (relativo a path_1) Emitir un reporte histórico: movimiento, fecha hora, revisión, archivo, path cvs -d:método_acceso*:user@host:/path_1 history path_2 (relativo a path_1) -c *método_acceso: pserver, local, etc.

Tokens - programa en Perl para parsear XML

Sinopsis use Tokens; open my $regex_fh, '<', $ARGV[0]; #regex.txt open my $target_fh, '<', $ARGV[1]; #file.txt my $target; {   local $/ = undef;   $target = <$target_fh>; #the content   $target =~ s/\n/ /g; } my $regex; {   local $/ = undef;   $regex = <$regex_fh>; #the content } printAll parse $target, $regex;   Códio (archivo: Tokens.pm): =pod  Copyright 2013 Gabriel Czernikier     This program is free software: you can redistribute it and/or modify     it under the terms of the GNU General Public License as published by     the Free Software Foundation, either version 3 of the License, or     (at your option) any later version.     This program is distributed in the hope that it will be useful,     but WITHOUT ANY WARRANTY; without even the implied warranty of     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  Se...