@davidrevoy once you have cat working, try piping the output of cat through sed.