read -- read from a file
In the first form, all of the remaining bytes are read from the file given by
; they are returned as the result of the command. If the
switch is specified then the last character of the file is discarded if it is a newline. In the second form, the extra argument specifies how many bytes to read; exactly this many bytes will be read and returned, unless there are fewer than
bytes left in the file; in this case, all the remaining bytes are returned.
or the return value from a previous call to
; it must refer to a file that was opened for reading. Any existing end-of-file or error condition on the file is cleared at the beginning of the
25 April 2004
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004