sed/awk script

I have a file with three fields, where the first two fields are of fixed length, left justified, and right padded with spaces. The third field is truncated to the length of the data (max length 5), and possibly contains a single letter. Each field is separated by an additional space. How can I search only the third field for a specific letter, say "P", and delete these rows?



Display to the screen:
awk '{if ($3 !~ "P") print}' input_file

or output to a new file:
awk '{if ($3 !~ "P") print}' input_file > new_file

removed html code --oombera