On Thu, 2006-03-16 at 12:23 -0700, Bryan Sant wrote:
> On 3/16/06, Stuart Jansen <[EMAIL PROTECTED]> wrote:
> > #!/bin/sh
> > file="/mnt/windows/My Documents/notes.txt"
> > tensai="Corey"
> > mesg="The world would be a better place"
> > mesg="${mesg} if everyone listened to ${tensai}'s advice."
> > echo "$mesg" >> "$file"
> > mesg="${mesg/a better/an even better}"
> > echo "${mesg/Corey/Stuart}" >> "$file"
>
> Sweet. Will this work with the Bourne shell? Or does this only work
> because sh is a link to bash?
Oops. Forgot to change the shebang after I added those last two lines.
I'm pretty sure that substitution in variables in a bash-ism.
--
Stuart Jansen e-mail/jabber: [EMAIL PROTECTED]
google talk: [EMAIL PROTECTED]
:0 # copy & paste for your convenience
* ^From:.*sjansen@
/dev/null # /ignore [EMAIL PROTECTED]
signature.asc
Description: This is a digitally signed message part
/* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
