Depends what you mean by "edit" I mean if you want to manually do it, use Nano, if you want to automatically do it, you could use a mixture of cut, grep, and echo.