Dopo aver googlato un po' mi son risposto da solo: heredoc!
Grazie comunque.