[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] confuse about bash
From: |
Davide Brini |
Subject: |
Re: [Help-bash] confuse about bash |
Date: |
Sun, 19 Feb 2012 14:55:10 +0100 |
On Sun, 19 Feb 2012 09:29:48 +1100, PurencoolGmail <address@hidden>
wrote:
> Hi Bash Expert,
>
> I have a bash script that says this
>
> HOUSE=null;
> echo HOUSE;
Are you sure?
> What I am trying to do from the command line is set variable when the
> script
> loads but I can't seem to fined anything on the web about it. I was
> hoping to
> to something like this
>
> > bash myscript.sh set HOUSE=foo
The usual way to do that is
HOUSE=foo myscript.sh
(or any command instead of "myscript.sh", for that matter)
--
D.