Sounds like a job for perl. If you don't like this, enjoy your C program. --tom -- "UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things." -- Doug Gwyn Tom Christiansen tchrist at convex.com convex!tchrist