Home Linux Utils
Create a file within a script

cat > /path/to/file <<EOF
line1
line2
line3
EOF