Alle Befehle
read
Thema: Shell und Skripte
Builtin der Shell: read
Liest eine Zeile in Variablen.
Paket: script-werkzeuge
Aufruf
read [-r] [-a array] [-p prompt] [name ...]
Beschreibung
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.
Optionen im 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 weitere Optionen des echten Programms, im Simulator noch nicht
-
-d braucht einen Wert im Simulator noch nicht Erklärung folgt
-
-i braucht einen Wert im Simulator noch nicht Erklärung folgt
-
-n braucht einen Wert im Simulator noch nicht Erklärung folgt
-
-N braucht einen Wert im Simulator noch nicht Erklärung folgt
-
-t braucht einen Wert im Simulator noch nicht Erklärung folgt
-
-u braucht einen Wert im Simulator noch nicht Erklärung folgt
-
-e im Simulator noch nicht Erklärung folgt
-
-s im Simulator noch nicht Erklärung folgt
Wo du ihn lernst
Noch in keiner Lektion.
Alle Befehle