Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

8.0;readln, revision 8.0, 84/03/15
READLN -- Set a variable equal to an input value
usage:  READLN [-P prompt] variable_name [...]


FORMAT

  READLN [-P prompt] variable_name [...]


  The  READLN  command  reads a line of input and sets a variable to that value.
  Use the "-P <prompt>" argument to instruct READLN to issue a prompt other than
  the $.  READLN accepts multiple variable names.

  The variable type is always a string.

  Refer to  the  descriptions  of  the  READ  and  READC  commands  for  related
  information.


ARGUMENTS

  -P <prompt>
  (optional)          Specify  a  particular  prompt string to request the input
                     value.

  variable_name [...]
  (required)         Specify the name(s) of the variable(s)  that  receives  the
                     input  value(s).    If  you  specify more than one variable
                     name, READLN assigns the  values  of  input  lines  to  the
                     variables in the order that the variables were named.


EXAMPLES

  Consider the following command line in a Shell script:

    READLN -p "Enter total here:" total

  In  this  example,  READLN  displays  the  prompt  "Enter total here:"  in the
  process input window, and assigns the value of the input line to the  variable
  named "total."

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026