util: add the cat function as a utility