I'm not good at scripting at all.
I have a text file that each contains either a domain or an IP, like this:
[me@server ~]# cat file1
I want to remove all IPs in that file and keep others, so the result be like:
[me@server ~]# cat file2
Your help is highly appreciated.