02-20-2012
It is called a here document - like typing the stuff live into ftp, but the script does the "typing".
The "<<EOF" and "EOF", mark the boundaries of the here doc. << EOF is the start, EOF (in absolutely the first column) marks the end.
"EOF" can be almost anything that is not a variable or a command, old stinkers like me use an exclamation point: !
EOF is sort of a de facto standard for that. You could use FARKLE or AuntMartha
if you wanted to.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Note: This is not meant to start a flamewar. I am looking for serious answers to questions regarding OpenBSD.
I'm coming to OpenBSD from an eight year background in Linux (specifically various versions of RedHat and now Fedora Core 3). I have some experience with Solaris 8 and HP-UX 11/11i. I... (1 Reply)
Discussion started by: deckard
1 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
I have absolutely no experince with either one, and would LOVE to start from somewhere! So please guide me to some web sites (beside these great forums of course!) that I can obtain n00b information. (Books, links, resources, etc.)
What software OS? should I begin with? I have heard... (2 Replies)
Discussion started by: CodeHunter
2 Replies
3. UNIX for Dummies Questions & Answers
I have a process in my TOP output that is consistantly at 97% usage. I have 16 CPUs on my box. So is the 97% the cumalative usage of all the CPUs or just one? (3 Replies)
Discussion started by: kskywr
3 Replies
4. UNIX for Dummies Questions & Answers
Howdy all, just joined the forums after finding them on a good ole' google search. very impressed from what i've seen so far! I'm pretty new to the world of Unix/Linux, have just had a change of job role and been thrown in at the deep end! I'm now working on an Oracle 9i database using HPUX... (1 Reply)
Discussion started by: davesimm
1 Replies
5. Shell Programming and Scripting
Okay, so I'm a little familiar with C and Linux, but my shell scripting experience is limited to say the least. I know that you begin a shell script with this
#!/bin/bash
Basically, I've written a C program that's output writes to a shell script. What my problem is, is I would like this shell... (4 Replies)
Discussion started by: beatzz
4 Replies
6. IP Networking
please help!
I have a sun blade with 2 x nics configured, both on different subnets. The eri0 interface (192.168.0.100) is connected to my router (192.168.0.1), but if i try to ping the router, it times out.
any suggestions are welcome - i noticed the 2 mac addresses are the same, i've set... (7 Replies)
Discussion started by: badoshi
7 Replies
7. Shell Programming and Scripting
Hi friends ,
I am confused with << EOF
EOF
Most of the cases I found
sqlplus $db_conn_str << EOF
some sql staments
EOF
another exapmle is
#!/bin/sh
echo -n 'what is the value? '
read value
sed 's/XXX/'$value'/' <<EOF
The value is XXX
EOF (1 Reply)
Discussion started by: imipsita.rath
1 Replies
8. Shell Programming and Scripting
Hey Guys!
I was hoping for some help with a simple script I'm trying to use. I have the script set up to pull some simple information out of a database .txt file and sed it into a preexisting template for assignment cover letters. The problem seems to be someplace in the sed statement but I... (5 Replies)
Discussion started by: BFeicht
5 Replies
9. Shell Programming and Scripting
hey guys
I would really appreciate some help, i need to do a project for a job that requires minimal UNIX scripting and im REALLY stuck
basically Im stuck at what i believe is something really simple but i just dont have a clue how to do it efficiently and properly and i REALLY appreciate some... (16 Replies)
Discussion started by: thurft
16 Replies
10. Shell Programming and Scripting
I need to read input from a file, and make sure nothing prints after column 72.
basically, ignore input after character 72 until the next newline character.
Any help is appreciated. I have been searching forever! (10 Replies)
Discussion started by: Gbear
10 Replies
LEARN ABOUT DEBIAN
writetype
WRITETYPE(1) General Commands Manual WRITETYPE(1)
NAME
WriteType - application designed to help students write more easily
SYNOPSIS
writetype [OPTION] ... FILE
DESCRIPTION
WriteType is a simple word processor designed to help young students write more easily and accurately. It offers spelling suggestions as
students type, making the process easier and less frustrating. It also provides the ability to read back text through either an eSpeak or a
Festival backend. In addition, there are special tools for teachers, and the entire application is easily translatable.1
WriteType is Free Software / Open Source, and is released under the GNU GPL license.
OPTIONS
-l, --lang
Set the language for this session
-t, --tts-engine
Set the tts engine for this session. Changes in the settings during this session will override this.
-?, --help
Display this help and exit
FEATURES
Word Completion - As students type, word suggestions appear on the right-hand side of the screen to complete the word being typed. Click-
ing on the desired word will finish the word. WriteType will also learn a student's habits over time and make more relevant suggestions
based on what has already been written.
Reading Back the Document - WriteType will read back written text, allowing students to catch errors they may not have caught reading it
back themselves.
Highlighting - Sections of the document can be quickly highlighted while typing or while listening to the document being read back. This
lets students quickly flag areas they need to go back and review.
Grammar checking - WriteType will underline simple grammar and formatting mistakes in the document, and offer to make the necessary revi-
sion.
Auto-correction - Common errors, such as typing isnt instead of isn't, will be corrected automatically without the need for intervention.
Distraction-free mode If the typist has difficulty maintaining concentration while typing, distraction-free mode is an alternative inter-
face that displays full screen and only includes the text box and the list of completions.
Add a list of custom words In some situations, the default list of words is not sufficient, so the system allows the user to add new ones.
Even if the words already exist in the list of words, adding them will bring them to the top of the list of suggestions.
AUTHOR
WriteType was made by Max Shinn <max@bernsteinforpresident.com>
SEE ALSO
You can find more information at http://writetype.bernsteinforpresident.com/
BUGS
Probably.
1.2.130 WRITETYPE(1)