A program I wrote many years ago when I wanted to select specific parts of text files. It combines piped combinations of the Unix programs "head" and "tail". The source is very simple, so should compile without problems.
The syntax is: list [-sl] [+el] [-sl+el] [-sl-el] [-nvd] [files...]
I know it works for gcc v3 and v4 on Linux.