perl -le 'print join " ", grep { $_ =~ /start4/ | $_ =~ /end7/ } (start4,end7)'