[wellylug] Default value in read
Sigurd Magnusson
sigurd at silverstripe.com
Wed May 9 09:36:55 NZST 2007
Its fine to do this...
read -p "Please provide domain name, without www prefix, e.g.
google.com: " domainname ;
But how do I do this?
$defaultvalue=google.com
read -p "Please provide domain name, without www prefix, e.g.
google.com: " $defaultvalue domainname ;
(In which I want the user to be able to be able to EDIT the default
value, as most times the default is correct, or needing a minor change,
e.g. ".com" might change to "co.nz" )
Siggy
Sigurd Magnusson
SilverStripe
sigurd at silverstripe.com
+64 4 978 7332
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wellylug.org.nz/pipermail/wellylug/attachments/20070509/5438d858/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 344 bytes
Desc: not available
Url : http://lists.wellylug.org.nz/pipermail/wellylug/attachments/20070509/5438d858/attachment.gif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 1622 bytes
Desc: not available
Url : http://lists.wellylug.org.nz/pipermail/wellylug/attachments/20070509/5438d858/attachment-0001.gif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 934 bytes
Desc: not available
Url : http://lists.wellylug.org.nz/pipermail/wellylug/attachments/20070509/5438d858/attachment-0002.gif
More information about the wellylug
mailing list