in vi, to search and replace:
:%s/search_phrase/replace_phrase/
with regular expressions:
.* matches one or more characters
so to get rid of the first two columns, separated by spaces
ie
2395 4586 3496
146434 6 3945
:%s/.* .* //
so it becomes:
3496
3945
or you could also do
:%s/[0-9]* [0-9]* //
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment