Bash how to write a file using cat and multi line string

Thought this was a cool example

cat >hello.go <<EOF
package main

import "fmt"

func main() {
fmt.Printf("hello, world\n")
}
EOF

Comments

Popular posts from this blog

Vim vi how to reload a file your editing