Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.editors    |    What? Edlin ain't good enough for you?    |    123,932 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 123,586 of 123,932    |
|    Lawrence D'Oliveiro to All    |
|    Re: How to edit HTML source file on Wind    |
|    18 Jan 25 20:54:19    |
   
   XPost: alt.comp.os.windows-10, alt.comp.software.firefox   
   From: ldo@nz.invalid   
      
   On Sat, 18 Jan 2025 13:55:07 -0500, Newyana2 wrote:   
      
   > Shell scripts? Maybe a little Perl? That's not programming code.   
      
   db_user=   
   db_passwd=   
   db_host=   
   for ((;;)); do   
    if [ "${1:0:2}" != "--" ]; then   
    break   
    fi   
    opt="${1:2:${#1}}"   
    shift   
    val="${opt#*=}"   
    opt="${opt%%=*}"   
    if [ "$opt" = "user" ]; then   
    db_user="$val"   
    elif [ "$opt" = "password" ]; then   
    db_passwd="$val"   
    elif [ "$opt" = "host" ]; then   
    db_host="$val"   
    else   
    echo "bad option $opt" 1>&2   
    exit 3   
    fi   
   done   
   if [ $# != 1 ]; then   
    echo $'Usage:\n\t'"$0"$' [--user=user] [--password=passwd]
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca