Unix pipeline tool for trimming long lines (C implementation)