Shell Commands/Echo

From MorphOS Library

< Shell Commands

Echo - Displays the specified message


/M      -                                                                   
NOLINE  - does not automatically move the cursor to the next line
          after printing the string.
FIRST   - see below
LEN     - see below
TO      - redirects output to TO file

The FIRST and LEN options allow the echoing of a substring. FIRST indicates the character position from which to begin the echo; LEN indicates the number of characters of the substring to echo, beginning with the FIRST character. If the FIRST option is omitted and only the LEN keyword is given, the substring printed consists of the rightmost <n> characters of the main string. For example, if your string is 20 characters long and you specify LEN 4, the 17TH, 18th, 19th, and 20th characters of the string are echoed.