Results 1 to 3 of 3

Thread: Bash User Input

  1. #1
    Join Date
    Mar 2019
    Posts
    12

    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.

  2. #2
    Join Date
    Feb 2014
    Location
    Riviera Beach, Maryland, USA
    Posts
    86

  3. #3
    Join Date
    Mar 2019
    Posts
    1
    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
  •