I have requirement where I want to delete a entry from /etc/hosts file matching a particular entry
For example
I want to delete an entry like below
192.168.1.1 test001 test001.test.test.com
How can I do this either using a single line command or a script.