I have file which contains some data, like this
2011-01-02 100100 1 2011-01-02 100200 0 2011-01-02 100199 3 2011-01-02 100235 4
and have s
awk 'BEGIN { lvl[0] = "warning" lvl[1] = "error" lvl[2] = "critical" } NR == FNR { evt[$1] = $2; next } { print $2, evt[$2], lvl[$3] }' dictionary infile