File: tfunjoin

package info (click to toggle)
funtools 1.4.4+dfsg2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 16,168 kB
  • ctags: 10,760
  • sloc: ansic: 87,238; sh: 9,727; lex: 4,595; asm: 3,281; ada: 1,681; makefile: 1,458; pascal: 1,089; cpp: 1,001; cs: 879; perl: 161; yacc: 64; sed: 32; csh: 10; tcl: 9
file content (37 lines) | stat: -rwxr-xr-x 445 bytes parent folder | download | duplicates (4)
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
#!/bin/sh

cat > foo1.txt <<EOF
val
---
1.0
1.5
2.0
2.5
3.0
3.5
4.0
EOF

cat > foo2.txt <<EOF
val
---
1.5
2.5
3.5
EOF

funtable foo1.txt foo1.fits
(funindex foo1.fits val) > /dev/null

funtable foo2.txt foo2.fits
(funindex foo2.fits val) > /dev/null

if [ x$1 = x ]; then
  TOL=-1
else
  TOL=$1
fi

echo "./funjoin -t $TOL -j val foo1.fits foo2.fits stdout | fundisp stdin"
./funjoin -t $TOL -j val foo1.fits foo2.fits foo.fits
fundisp foo.fits