It’s not impossible. Use the read
command.
read -p "My name is " name
echo "Nice to meet you $name"
More Related Contents:
- Batch equivalent of Bash backticks
- Single script to run in both Windows batch and Linux Bash?
- How to use double or single brackets, parentheses, curly braces
- Brace expansion with variable? [duplicate]
- Bash – variable variables [duplicate]
- Stop shell wildcard character expansion?
- Execute command on all files in a directory
- How can I suppress all output from a command using Bash?
- Bash Templating: How to build configuration files from templates with Bash?
- How to remove a newline from a string in Bash
- How to merge two files line by line in Bash
- Pass all variables from one shell script to another?
- How to use shell commands in Makefile
- Checking if output of a command contains a certain string in a shell script
- Floating point comparison with variable in bash [duplicate]
- Passing a string with spaces as a function argument in Bash
- Bash conditional based on exit code of command
- Arithmetic expressions in Bash?
- Unexpected operator error [duplicate]
- Bash inserting quotes into string before execution
- Node.js Shell Script And Arguments
- How to modify a global variable within a function in bash?
- Rename multiple files in shell [duplicate]
- $BASH_VERSION reports old version of bash on macOS, is this a problem that should be fixed?
- How to cd into a directory with space in the name?
- Convert Unix timestamp to a date string
- Extract version number from a string
- How to use Bash to create a folder if it doesn’t already exist?
- What is more portable? echo -e or using printf?
- Multidimensional associative arrays in Bash