Date: Mon, 4 Feb 2002 15:49:23 +0000 From: Ceri <setantae@submonkey.net> To: questions@FreeBSD.org Subject: Stupid sh(1) question Message-ID: <20020204154923.GA4312@rhadamanth>
next in thread | raw e-mail | index | archive | help
Not directly FreeBSD related, but a good one for Annelise's Linux->FreeBSD question archive. I have a bash script that I wrote that does this : SERVERS[0]="ns1.example.net" SERVERS[1]="doppler.example.net" [..] SERVERS[x]="mail.example.net" and then later : for i in ${SERVERS[@]} do stuff done | ${MAILCMD} -s "${SUBJECT}" ${RECIPIENT} Now, I _have_ read the manpage, but I cannot work out : a) How to initialise an array in sh b) How to access an array in sh. Any enlightenment will be most welcome. Note that RTFM is not a good answer in this case, as I already have - I need a concrete example really. Thanks, Ceri -- keep a mild groove on To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020204154923.GA4312>