cat << ABC > ./file1.tmp 1.whatever you want 2.whatever you want 3.whatever you want ABC #here line 1 2 3 will go to file1.tmp #in the script line 1 2 3 are comments