home *** CD-ROM | disk | FTP | other *** search
-
-
-
- Echo(V1.3 in C:) (2.x/3.x internal))
-
-
-
- NAME
- Echo - Echo a string to the terminal.
-
- SYNOPSIS
- Echo [string] NOLINE FIRST LEN
-
- DESCRIPTION
- Echo displays its argument to the current output,
- this can be the printer, a file or the terminal. Echo is
- typically used in scripts, but it can also be used (and
- useful) to send escape sequences to things like printers.
-
- 2.x/3.x only: You can use echo to output a file to
- the environment. This is shown in the example below.
-
-
- Note that with the added keywords, you MUST use
- double quotes to delimit a line to echo under 1.3. Under
- 2.x/3.x you don't need the quotes ONLY if it appears last
- on the command line.
-
- If you want to add a line feed, use the *N character.
- But, if you use this option in either 1.3, 2.x, or 3.x
- then quotes must be used.
-
- OPTIONS
-
- NOLINE
- This suppresses the newline which Echo automatically
- adds at the end of its argument. This is useful in that
- it allows you to build a single line of text using the
- output of two or more commands.
-
- FIRST
- This option takes a numeric argument, which indicates
- which character position to begin output at. Any
- character before FIRST will not be displayed. This is
- useful with LEN (see below).
-
- LEN
- This option takes a numeric argument, which indicates
- how many characters to output. If you also supply a
- FIRST argument (see above), character output will begin
- with that character, for LEN characters. If LEN is used
- without the FIRST keyword, then the final LEN characters
- will be displayed.
-
- EXAMPLES
-
- 1. To display "Hello World" on the terminal.
-
- Echo "Hello World!"
-
- 2. To advance the printer paper, and displays Hello
- World! on the printer. Note that you must have set your
- escape character to \ for this example to work.
-
- Echo >PRT: "\FHello World!"
-
- 3. To display "ello World!".
-
- Echo First 2 "Hello World!"
-
-
- 4. To display "rld!".
-
- Echo Len 4 "Hello World!"
-
-
- 5. To display "World!".
-
- Echo First 7 Len 6 "Hello World!"
-
- 6. To print the text file Ram:This.text to your
- screen.
-
- Echo Ram:This.text
- ΓΈ
-