Thread
:
Script to prompt Linux user for hostname and unique NFS share
View Single Post
•
•
Join Date: Sep 2008
Posts: 61
Reputation:
Solved Threads: 7
Gromit
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.
Help with Code Tags
Shell Scripting Syntax
(
Toggle Plain Text
)
read
-p
"what is your name? "
name
echo
"Nice to meet you $name"
read -p "what is your name? " name echo "Nice to meet you $name"
Hope that helps!
-G
Gromit
View Public Profile
Find all posts by Gromit