A small simplification - replacing a 'cat, grep, unset' sequence with a single sed instead.