I have a file which in the first field of a line list error codes. I needed to pull out the codes that were "11". My problem is some error codes are 1. Also in the other fields(2,3 etc) there are other numbers so grepping wouldnt work(I dont think) I came up with
for a in `awk '{print $1}' erroroutg1| sed -n '/11/p'`
to find 11 in the first column but how would I get it to print the entire line that contains 11. If I print $a I just get "11" but not the rest of the line because of my awk statement. Any help would be great. Thanks.
for a in `awk '{print $1}' erroroutg1| sed -n '/11/p'`
to find 11 in the first column but how would I get it to print the entire line that contains 11. If I print $a I just get "11" but not the rest of the line because of my awk statement. Any help would be great. Thanks.