Differences between version 4 and predecessor to the previous major change of HereDocuments.
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 4 | Last edited on Saturday, December 9, 2006 11:44:17 pm | by BenStaz | Revert |
Older page: | version 3 | Last edited on Monday, November 11, 2002 11:08:31 am | by CraigBox | Revert |
@@ -30,15 +30,15 @@
Then compare that in a twenty line block. Makes writing the documentation easier and checking it painless (did you mean to mention 'echo' at the beginning of a line and your mind skipped over it because all the lines began with echo?)
Another very important use is automating commands such as FTP that don't otherwise provide a method for scripting;
-
+<verbatim>
ftp -n <<EOF
open ftp.example.org
user anonymous ${USER}@
cd /path/to/file
binary
passive
get file.gz2
EOF
-
+</verbatim>
See bash(1).