![]() read is a bash built-in command that reads a line from the standard input (or from the file descriptor) and split the line into words.Retrieve them with: When the user input … See more Dec 29, 2020 If you set it to some other value, reset it to default whitespace. I have one more option that is a mixture of these answers but what makes it nice is that you only need to press one key and then the script continues thanks to the -n option of read. ![]() The Bash shell provides the getopts builtin command, a standard way to achieve this. The read built-in command is the counterpart of the echo and printf commands.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |