fork download
  1. #!/bin/bash
  2.  
  3. # Prompt user to enter their name
  4. echo -n "Enter your name: "
  5. read name # Reading the input
  6.  
  7. # Display the output in the specified format
  8. echo "Your name is $name."
  9.  
Success #stdin #stdout 0.01s 5176KB
stdin
Standard input is empty
stdout
Enter your name: Your name is .