File: set_attr

package info (click to toggle)
htdig 1%3A3.2.0b6-21
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 21,292 kB
  • sloc: ansic: 49,632; cpp: 46,468; sh: 17,400; xml: 4,180; perl: 2,543; makefile: 888; php: 79; asm: 14
file content (9 lines) | stat: -rw-r--r-- 173 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
#!/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