simple script to handle text files by means of c-like the directives