Un here document dovrebbe andare bene:

codice:
/bin/bash <<fineHereDoc 1>> prova.txt
cat 1.txt
echo;
cat 2.txt
fineHereDoc