Looking into my print queue directory, all seems fairly simple. In each queue directory, each unprinted job has a cf file. This file contains almost everything that lpq show you, all nicely tagged. So, a simple bash script ought to solve your problem. (I almost added "for good" but we all know that is not going to happen.) Joel