> While this works it fails to provide any context, therefore I want to
> insert the line number @ the beginning of each line and follow it with
> a tab and then have uniq ignore the first field with: uniq
> --skip-fields=1
It's not Vim related, but since you seem to be using Unix utilities to
begin with, you might be interested in nl.
nl -ba -nrz -w6
Actually, just plain nl will probably work because it uses a tab
separator and 6 space padding by default, but the above command is a
little closer to what you were asking for.
No comments:
Post a Comment