Zary Necheva wrote:
>
> Hi everyone,
Hello,
> I have a file with data similar to this
> ..
> Ex|FEx|NQxx|OUxx|GExx|OVxxx|IQ|OR
> Ex|FExx|NQxx|GExxx|OVxx|OUxx|IQxxx|ORxxx
> Ex|FExxx|NQxx|OUxx|OVxxx|ORx
Rob Dixon wrote:
>
> use strict;
> use warnings;
>
> open INFILE, 'myfile.txt' or die $!;
>
> while () {
> chomp;
> my @fields = split /\|/;
> my @output = grep /^(E|FE|NQ|IQ)/, @fields;
> print join('|', @output), "\n";
> }
>
> **OUTPUT
>
> Ex|FEx|NQxx|IQ
> Ex|FExxx
Hi Tim.
Sorry, but may I mess with your code? :)
Tim Johnson wrote:
>
> Zary Necheva wrote:
> >
> > I have a file with data similar to this
> > ..
> > Ex|FEx|NQxx|OUxx|GExx|OVxxx|IQ|OR
> > Ex|FExx|NQxx|GExxx|OVxx|OUxx|IQxxx|O
2003 12:45 PM
To: [EMAIL PROTECTED]
Subject: Help with extracting text file
Hi everyone,
I have a file with data similar to this
..
Ex|FEx|NQxx|OUxx|GExx|OVxxx|IQ|OR
Ex|FExx|NQxx|GExxx|OVxx|OUxx|IQxxx|ORxxx
Ex|FE
Hi everyone,
I have a file with data similar to this
..
Ex|FEx|NQxx|OUxx|GExx|OVxxx|IQ|OR
Ex|FExx|NQxx|GExxx|OVxx|OUxx|IQxxx|ORxxx
Ex|FExxx|NQxx|OUxx|OVxxx|ORxxx|IQxxx|RFxx
Ex|FExx|NQxx