Hi
I have a data file that looks like this:
infile:
I would like to print the lines that don't match 'Z' and their next lines?
the outfile should be:
I tried:
the out file looks the same as the infile
I have a data file that looks like this:
infile:
Code:
A
13
B
23
F
22
B
413
R
16
the outfile should be:
Code:
A
13
F
22
R
16
Code:
awk '!/Z/{print;getline;print}' infile