Ease the load for regex

Instead of doing a tail in the end of the pipes, do a head in the beginning. This will cut away all the fat for sed to cut through.