#!/bin/bash

# Combines two or more hunspell dictionaries.
# (C) 2010 Sergey Kurakin <kurakin@altlinux.org>

# Attention! All source dictionaries MUST share the same affix file.

# Usage: dic_combine source1.dic source2.dic [source3.dic...] > combined.dic

# The left source dictionary takes precedence over the right one.


WORDS=`cat $@ | sort --field-separator=/ --key=1,1 --unique | sed -r 's|^[0123456789]*$||'`

echo $WORDS | wc -w
for WORD in $WORDS
do
	echo $WORD
done

