#!/usr/bin/perl -w open(FIL,"< $ARGV[0]"); $list_flag=0; $paracont=0; while () { if ($_=~ /\<\</ && $list_flag == 0) { print "\n"; print $_; $list_flag=1; } elsif ($_=~ /\@/ && $list_flag) { print "\n"; $list_flag=0; } elsif ($_=~ //) { print $_; $lee=; @name=split(' ',$lee); print "",$name[0],"\n"; print "",$name[1],"\n"; $lee=; print "\n",$lee,"\n"; $lee=; print "
",$lee,"
\n"; print "
\n"; } elsif ($_ =~ //) { $lee=; if ( $lee =~ /\/home\/xcalbet\/arti/ ) { $fileref=$lee; $fileref=~s/\/home\/xcalbet\/arti\/hispalinux4\///; print $_; print $fileref; } elsif ($lee =~ /\\/) { while (1) { $lee=; if ($lee =~ /<\/para>/) { last; } } } elsif ($lee =~ /\<\</ && $list_flag == 0) { print $_; print "\n"; print $lee; $list_flag=1; } else { $paracont++; if ($paracont == 1) { print "\n"; print $_; print $lee; } elsif ($paracont == 5) { print $_; print $lee; $lee=; print $lee; print "\n"; } else { print $_; print $lee; } } } else { print $_; } } close(FIL);