[svlug] bash scripts - config files with comments?

Florin Andrei florin at andrei.myip.org
Thu Aug 16 17:37:42 PDT 2007


Paul Reiber wrote:
> Florin -
> 
> the bash command '.' is similar to the csh command 'source' - both
> take an argument filename, and read that filename into the current
> script as if the lines of the file were actually part of the
> 'sourcing' script itself.

No, that's exactly what I'm doing now and what I'm trying to avoid.

The stuff that Robert L. posted looks promising. I was hoping to avoid 
sed or any other external utility, but hey, if it works then fine - 
after all the config file is only processed once.

-- 
Florin Andrei

http://florin.myip.org/



More information about the svlug mailing list