You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
173 B

#!/bin/sh
conf=conf/htdig.conf.tmp
if grep $1 $conf > /dev/null ; then
mv $conf tmp_conf
sed "s@$1.*@$1: $2@" < tmp_conf > $conf
else
echo "$1: $2" >> $conf
fi