You're replying to a comment by John Emery.

October 11, 2012, 21:47


Thought you might be interested in seeing my expanded version of your 'greater than' example #20 which I'm using for practical work purposes:

Print every record from an invoice where the value in field 7 (date pre-formatted by sed as YYYYmmdd) falls on or after April 1, 2011 and is before October 1, 2011.

awk '$7 >= 20110401 && $7 < 20111001'

Cool, I did not realize you could do this with awk! Your example has saved me looping through thousands of sales records and comparing date stamps against the range I needed!


Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "cdrom_92": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.