On Wed, 11 Jul 2001 [EMAIL PROTECTED] wrote:

> Waht i mean is: i don't want to edit the CONFIG-file during the installation -
> this must run itself.

Use 'sed.'

e.g.

echo "s/^CONFIG_DIR=.*/CONFIG_DIR=\/path/" >pattern
sed -f pattern CONFIG >CONFIG.new
mv CONFIG.new CONFIG
rm pattern

(There's probably a way to escape everything for using sed's -e command,
but I often miss something or other and prefer to use a temporary file.)

--
-Geoff Hutchison
Williams Students Online
http://wso.williams.edu/



_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a 
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html

Reply via email to