16
grep is not used to manipulate/change text, only to search for text/patterns within text
You should look into something like sed or awk or cut if you want a command line tool to do it. Or write a script in Python/Perl/Ruby/whatever.