root/paper-tape-project/trunk/perl-tools/udo-parser

Revision 1, 494 bytes (checked in by sven, 4 years ago)

Erstimport

Line 
1#!/usr/bin/perl
2#
3# Usage: udo2-parser.pl [DATEINAME]
4#   liest von Textdatei oder stdin eine Datei in Udos favorisiertem Format,
5#   einfach hexoktetts mit leerzeichen voneinander getrennt
6#
7#   Geschrieben 03.04.08
8#
9#
10
11print pack("C", hex $_) for(split(/\s+/, join '', <>));
12
13#$zero_beginning = 1;
14#
15#my $s;
16#while(<>) {
17#    if($zero_beginning) {
18#        next if /00?/;
19#        $zero_beginning = 0;
20##    }
21#    $s .= $_;
22#
23#}
24#
25#print pack("C", hex $_) for (split(/\s+/, map {  }, <>));
Note: See TracBrowser for help on using the browser.
© 2008 - 2010 Sven Köppel • Some rights reserved
Powered by Trac
Expect where otherwise noted, content on this site is licensed under a Creative Commons 3.0 License