I'm sure this must be an easy question for you "Gurus".
I've a file, having hundreds of email addresses, and every time, I've to delete some lines or email address from this file, because of its newer version nature, every time, its updated with some new email address, but these addresses have to be removed.
How I can do this, using one command or some facility.
What I'm doing right now: open this file using vi
and then one by one delete lines using:
:%g/junk/d - global delete
but need to do this for each argument, and now their number is also increasing, so I want some kind of help, which makes my life easy, instead of deleting executing this cmd one by one, just in one command, will be able to delete all those arguments only.
Thanks in advance.