Use cat and heredocs

Signed-off-by: Johnneylee.Rollins@gmail.com <Johnneylee.Rollins@gmail.com>