How can I write a here document to a file in Bash script?
I like this method for concision, readability and presentation in an indented script:
<<-End_of_file >file → foo bar End_of_file
Where → is a tab character.
→