read Flashcards

1
Q

read

A

Reads a single line from the standard input, or from file descriptor FD if the -u option is supplied.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

read

  • a array, Assign the words read to sequential indices of the array variable ARRAY, starting at zero.
  • d delim, Continue unitl the first character of DELIM is read, rather than newline.
  • e, Use Readline to obtain the line.
  • i text, Use TEXT as teh initial text for Readline.
  • n nchars, Return after reading NCHARS characters rather than waiting for a newline, but honor the delimiter if fewer than NCHARS characters are read before the delimiter.
  • N nchars, Return only after reading exactly NCHARS characters, unless EOF is encountered or read times out, ignoring any delimiter.
A
  • p prompt, Output the string PROMPT without a trailing newline before attempting to read.
  • r, Do not allow backslashes to escape any characters.
  • s, Do not echo input coming from a terminal.
  • t timeout, Time out and return failure if a complete line of input is not read within TIMEOUT seconds.
  • u fd, Read from file descriptor FD instead of the standard input.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly