View Single Post
Join Date: Sep 2008
Posts: 61
Reputation: Gromit is an unknown quantity at this point 
Solved Threads: 7
Gromit's Avatar
Gromit Gromit is offline Offline
Junior Poster in Training

Re: Script to prompt Linux user for hostname and unique NFS share

 
0
  #4
Nov 20th, 2008
Check out "read"! It will take the user input and do whatever you want with it.

Shell Scripting Syntax (Toggle Plain Text)
  1. read -p "what is your name? " name
  2. echo "Nice to meet you $name"

Hope that helps!
-G
Reply With Quote