Exracting fields in file and storing it in different file in vim
I have file int the following format:
..
..
..
Name:abc
..
..
Name:xyz
..
..
I want to extract the name and occupation field and save it in another
file out.txt using vim in the following format:
Name:abc
Occupation:def
Name:def
Occupation:ghi
Please don't use any any advanced commands. I am just a beginner.
No comments:
Post a Comment