File: sync2.sh

package info (click to toggle)
ruli 0.36-3.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,148 kB
  • sloc: ansic: 12,599; sh: 416; makefile: 350; perl: 196; java: 112; php: 55; pascal: 33; lisp: 31
file content (53 lines) | stat: -rwxr-xr-x 655 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#! /bin/sh
#
# debug memory leak for ruli_sync_t
#
# $Id: sync2.sh,v 1.1 2003/01/09 07:59:45 evertonm Exp $

do_cat () {

	cat <<__EOF__
savannah.gnu.org
sf.net
www.google.com
www.microsoft.com
www.uol.com.br
www.msn.com
www.cisco.com
freshmeat.net
slashdot.org
localhost
kensingtonlabs.com
vanrein.org
xxx
bogus
__EOF__

}

show_domains () {

    do_cat
    do_cat
    do_cat

}


show_domains | while read d
do
    echo _http._tcp.$d
done | ./syncsolver 2> x

grep malloc x | awk '{ print $4 }' | sort > x.1

grep free x | awk '{ print $4 }' | sort > x.2

diff x.1 x.2 > y

cat y

grep addr y | awk '{ print $2 }' | while read i; do
    grep $i x
done