- or download this
pseudo code
check line for tabMSISDN=digits;
if found extract digits and assign to line
otherwise assign MSISDN=notSet to the line for printing later
- or download this
if (/^(\t*MSISDN=(\d+));/) {
...
$line = "<$2>"; #group 2
#otherwise assign MSISDN=notSet to the line for printing later
}
- or download this
#!/usr/bin/perl
use strict;
...
print OUTFILE "Update Command $line\n";
close INFILE;
close OUTFILE;
- or download this
<SUBBEGIN
MSISDN=123476789678;
...
ODBIC=BIC;
ODBOC=BAOC;
<SUBEND
- or download this
desired output
Update Command <123476789678>,BIC,BAOC
Update Command MSISDN=notSet,BIC, BAOC