Offering a default on return in a shell script input prompt
.
I obviously don't have bash4 as the following doesn't work:
.
$ read -e -p "Enter database SID, or just return for default: " -i "swmfolx" ORACLE_SID
-bash: read: -i: invalid option
read: usage: read [-ers] [-u fd] [-t timeout] [-p prompt] [-a array] [-n nchars] [-d delim] [name ...]
.
'All' I am trying to do is prompt for input with the option of just return for defaults.
.
The Googlesphere is remarkably silent on this! Any links or advice would be gratefully acknowledged.