home *** CD-ROM | disk | FTP | other *** search
-
-
-
- Read(V1.3) ARP User's Manual Read(V1.3)
-
-
-
- NAME
- Read - Read input and parse.
-
- SYNOPSIS
- Read Variables/...
-
- DESCRIPTION
- Read accepts input from its standard input. It takes as
- arguments a list of one or more environment variables into
- which it will place the parsed input.
-
- Read chops the input up on whitespace and/or double quotes,
- depending on the user's input, placing the first argument in
- the first environment variable you supply, the second in the
- second and so on. The final environment variable supplied
- gets the rest of the input string. If only one variable is
- supplied, it gets all the input.
-
- Read may be used to good effect in pipelines (see the Ash
- Manual for more information on pipes and several good
- examples using Read).
-
- EXAMPLE
- Read First Last
- S D B
- First will contain 'S', while last will contain 'D B'.
-
- Read First Last
- "S D B"
- First will contain '"S D B"' while last will be empty.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 1 (printed 4/28/89)
-
-
-
-