how do I feed a script conf file variables on the command line ?

user user at
Fri Nov 25 07:11:37 GMT 2005

Ok, let's say I have a shell script named, and sucks
in a file /etc/file.conf that contains nothing but variable declarations


and so on.  Very simple.

My question is, what if I want to feed the script a setting on the command
line ?

Normally I run the script: -x -v -e -r

and it looks for /etc/file.conf and sucks in all the variables.

But I want to: -x -v -e -r SETTING1='setting1'

for some reason this is not working.  I am in the FreeBSD csh shell when I
attempt this (FWIW).

I just want to be able to quickly bypass the conf file, using a single
command line.


More information about the freebsd-questions mailing list