#!/usr/bin/awk -f
#
# reverse-ngram-counts --
#	Reverse the word order in N-gram count files
#
# $Header: /home/srilm/CVS/srilm/utils/src/reverse-ngram-counts.gawk,v 1.1 2000/06/22 20:38:41 stolcke Exp $
#
{
	i = 1;
	j = NF - 1;
	while (i < j) {
		h = $i;
		$i = $j;
		$j = h; 
		i ++; j--;
	}
	print;
}
