Unfortunately no version seems to work:
The first version prints every single line, the other two provide no output.
My text looks like this:
RBODY /
sdsd
sdsdsd
sdsd
END
SHELL / 9171781 9001914 9073136 9073137 9073118 9073115
SHELL / 9171782 9001914 9073117 9073120 9073119 9073116
SHELL / 9171783 9001914 9073118 9073121 9073120 9073117
SHELL / 9171784 9001914 9073137 9073138 9073121 9073118
SHELL / 9171785 9001914 9073120 9073123 9073122 9073119
SHELL / 9171786 9001914 9073121 9073124 9073123 9073120
# [SDM:HISTORY:VERSION] = "History_Variante_DGS"
#
# S01__B70D_revo: *Autor: revo
# *Datum: 11.12.12
# *Basis: -------
# - automatischer Positionierungsprozess
# - verwendetes Dummysessionfile: Sessiondummy____au481_______LFaH3_sitzpos_S01__B70D_revo.ses
# - verwendetes Gurtsessionfile : Sessiongurt_____au481_______LFaH3_sitzpos_S01__Basi_revo.ses
# - verwendetes Sitzsessionfile : Sessionsitz_____au481__0____LFaH3_sitzpos_S01__B001_revo_k14m.ses
#
#
The code up until now:
#!/usr/bin/perl
#
#print "Bitte geben sie das Dummy Include an:\n";
#chop($dummyfile = <>);
#print "\n";
#print "Bitte geben sie das Basis Include an:\n";
#chop($basisfile = <>);
#print "\n";
$dummyfile = 'Dummy_mu5070b___mvs2g__1_cb21_k19_m04F_bsd_w3_bfrei__krmi_040_.inc';
$newinc = "dummy_include.inc";
open(INC, $dummyfile);
open(NEWINC, ">$newinc");
.... missing regex
print @alllines;