If someone is interested, I just putted on sourceforge a small Java comand-line tool for doing exactly that.
As it is written in Java, it is obviously runable on linux.
The link for the project is https://sourceforge.net/projects/chksem/files/chksem-1.0/