-
Bash User Input
I am writing a script which requires user input. How can I prompt for user input to use in my bash script. Thanks for your offer to help. I'm very grateful.
-
-
You can use read command in bash where input will be set into a bash variable. Read -p "What is your age" age in this example the user input value will be set into age.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|