[svlug] bash scripts - config files with comments?

Robert Citek robert.citek at gmail.com
Sat Aug 18 06:18:42 PDT 2007


On 08/18/2007 02:14 AM, Florin Andrei wrote:
> Robert Citek wrote:
>> Avoiding sed:
>>
>> while read LINE; do
>>    LINE=${LINE%%#*}
>>    [ -z "$LINE" ] && continue
>>    : do what you want here
>> done < config-file
> 
> Looks like it's exactly what I was looking for. Thanks!
> 
> Now let me test it a little bit...

Hope it works for you.  Please let us know how it goes.

Regards,
- Robert




More information about the svlug mailing list