I have a file with 5 fields. These fields are separated by a colon. The 5th field is the field with the amount. I want to find amounts less than 200.00 and print them out.
I try this:
awk -F: '$5 < 200{print $5}' filename
It works except for amounts that are over 1,000.00. These amounts are seen as less than 200.00 for some reason. I am sure it has to do with the comma. I don't know why though because my field separator is a colon.
I try this:
awk -F: '$5 < 200{print $5}' filename
It works except for amounts that are over 1,000.00. These amounts are seen as less than 200.00 for some reason. I am sure it has to do with the comma. I don't know why though because my field separator is a colon.