Skywalker1957
Technical User
Hey! I'm trying to figure out a way of using awk to sort data off of a field that contains Epoch time. I'm trying to look at only the last 24 hours of log files, so I would need to take Epoch time minus 86400 and sort only those timestamps greater than the timestamp from the last 24 hours.
awk ' $1 > 1277400638 '
but how do I get at that number from within awk? I can calculate it and save it to a flat file in /tmp but how do I call it from within awk or if I put it in a variable, how do I call that environment variable from within awk?
Thanks for your help.
awk ' $1 > 1277400638 '
but how do I get at that number from within awk? I can calculate it and save it to a flat file in /tmp but how do I call it from within awk or if I put it in a variable, how do I call that environment variable from within awk?
Thanks for your help.