Skip to content

Instantly share code, notes, and snippets.

@ajaegers
Created November 26, 2015 15:10
Show Gist options
  • Save ajaegers/a619a29670cb8082e7b2 to your computer and use it in GitHub Desktop.
Save ajaegers/a619a29670cb8082e7b2 to your computer and use it in GitHub Desktop.
Bash create file and insert multiline content
#!/bin/bash
cat <<EOF > result.txt
Content 1
Content 2
Content 3
Content 4
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment