read man page on HP-UX

Man page or keyword search:  
man Server   10987 pages
apropos Keyword Search (all sections)
Output format
HP-UX logo
[printable version]

read(1)								       read(1)

NAME
       read - read a line from standard input

SYNOPSIS
       var ...

DESCRIPTION
       reads a single line from standard input.	 The line is split into fields
       as when processed by the shell (refer to shells in the first  field  is
       assigned	 to  the  first	 variable  var, the second field to the second
       variable var, and so forth.  If there are more fields  than  there  are
       specified var operands, the remaining fields and their intervening sep‐
       arators are assigned to the last var.  If  there	 are  more  vars  than
       fields, the remaining vars are set to empty strings.

       The  setting of variables specified by the var operands affect the cur‐
       rent shell execution environment.

       Standard input to can be redirected from a text file.

       Since affects the current shell execution environment,  it  is  usually
       provided	 as a normal shell special (built-in) command.	Thus, if it is
       called in a subshell or separate utility execution environment  similar
       to  the	following, it does not affect the shell variables in the call‐
       er's environment:

   Options
       recognizes the following options:

	      Do not treat a backslash character in any special way.
		     Consider each backslash to be part of the input line.

   Opperands
       recognizes the following operands:

	      var    The name of an existing or nonexisting shell variable.

EXTERNAL INFLUENCES
   Environment Variables
       determines the internal field separators used to delimit fields.

RETURN VALUE
       exits with one of the following values:

	       0     Successful completion.

	      >0     End-of-file was detected or an error occurred.

EXAMPLES
       Print a file with the first field of each line moved to the end of  the
       line.

	      while read -r xx yy
	      do
		      printf "%s %s \n" "$yy" "$xx"
	      done < input_file

SEE ALSO
       csh(1), ksh(1), sh(1), sh-posix(1).

STANDARDS CONFORMANCE
								       read(1)
[top]

List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net