try 'sudo tee' rather than piping output