/[swish]/trunk/slice-merge.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/slice-merge.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 104 - (show annotations)
Sat Apr 30 23:35:27 2005 UTC (19 years ago) by dpavlin
File MIME type: application/x-sh
File size: 488 byte(s)
merge index slices into single index

1 #!/bin/sh
2
3 tmp=/tmp/swish-list
4 dir=./index
5
6 ls "$dir/*.prop" | sed 's/\.prop$//' | grep -v all > $tmp
7 split -l 128 $tmp $tmp-
8
9 num=0
10 ls $tmp-* | while read slice ; do
11 num=`expr $num + 1`
12 printf 'merge slice %d\n' $num
13
14 slicefile="index/slice-$num"
15
16 if [ -f "$slicefile" ] ; then
17 echo "SKIP, $slicefile exists!"
18 else
19 echo swish-e -M `cat $slice` "$slicefile"
20 fi
21 done
22
23 echo "merge all slices"
24 swish-e -M `ls index/slice-*.prop | sed 's/\.prop$//'` index/all
25 #rm -f index/slice-*
26

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26