#!/usr/bin/perl sub vs2osis { my $context = $_[0]; $context =~ s/([12345]?[A-Z][a-z]+)\ .*/$1/; my $ref = $_[0]; $ref =~ s/,/:/; my $return = `vs2osisref "$ref" $context de`; $return =~ s/\n$//; $return; } my @files=`ls -1 wb.abw`; foreach (@files){ my @lines; chop; open USFM, ">>$_.tei"; @lines=`cat $_`; foreach (@lines) { s/props\=\".*?\"//g; # entry (ordinary) s/