I'm pretty sure this can be done, but I'm either imagining that such a command exists or it's just too early and I can't think of it. By the way, I don't have any flavor of *nix available, which could be where I'm remembering this from.
Thanks for the help.