add grep
New stuff added to lib.c needs review too, so make a lib/pending.c and move several functions to it.
klogd, submitted by Ashwini Sharma.