All commands
read
Topic: Shell and scripts
Shell builtin: read
Reads a line into variables.
Package: script-werkzeuge
Usage
read [-r] [-a array] [-p prompt] [name ...]
Description
Read one line from standard input and split it at the characters in $IFS. The first word goes into the first NAME, the second into the second, and the last NAME gets the rest. Without NAME the whole line goes into REPLY.
Options in the simulator
-
-r keep backslashes as they are -
-a ARRAY put the words into the array ARRAY, starting at 0 -
-p PROMPT show PROMPT first when reading from a terminal
8 more options of the real program, not in the simulator yet
-
-d needs a value not in the simulator yet Explanation to come
-
-i needs a value not in the simulator yet Explanation to come
-
-n needs a value not in the simulator yet Explanation to come
-
-N needs a value not in the simulator yet Explanation to come
-
-t needs a value not in the simulator yet Explanation to come
-
-u needs a value not in the simulator yet Explanation to come
-
-e not in the simulator yet Explanation to come
-
-s not in the simulator yet Explanation to come
Where you learn it
No lesson yet.
All commands