how can I take input with a shell script?
I need help with taking input with a shell script
something like this -----> take input ---> save as a var echo $var thanks |
I think it's something like this, $1 being the first arg.
Code:
if ( "$1" != "" ) set port="$1" Then: Code:
echo $port |
I know how to save it like that.....what I am actualy looking for is to 'take input' from the user and save it in a 'var'. But Thanks
|
Something like this? (in bold is my input)
Code:
skalkoto@darkstar:~/src$ ./ask_name For more info, look here: http://www.tldp.org/LDP/abs/html/internal.html |
yes........thanks ALOT
|
All times are GMT -5. The time now is 12:53 PM. |