#!/usr/bin/bash
cd po;
for i in node*.html; do
	html2ascii $i | sed 's/\[\] //'| sed 's/\[\]/ /g' > tmp
	if test "$i" = "node5.html"; then
		a=`sed -n '6p' tmp`;
	else
		a=`sed -n '4p' tmp`;
	fi
	l=`wc -l tmp | awk '{print $1}'`;
	head `expr 4 - ${l}` tmp > ${a}.txt;
done
rm tmp
cd ..                        
