Hello to you all,
I searched in vain for how to merge text files - hosts in my case - for there are double lines ...
Is there a software that allows multiple reconnet lines and delete them?
All responses are welcome
Thank you!
Hello to you all,
I searched in vain for how to merge text files - hosts in my case - for there are double lines ...
Is there a software that allows multiple reconnet lines and delete them?
All responses are welcome
Thank you!
I know, but I did not know we could easily merge!
Thank you and good evening!
I would try this:
- get both host files on the same system. Call them host1 and host2
- merge them like this:
cat host1> tmphost
cat host2>> tmphost
- visually verify the merge:
pg tmphost
- filter the merged file:
cat tmphost|sort|uniq >tmp2host
- visually verify the new file:
pg tmp2host
Now it should be a simple job of removing any remaining duplicates using vi. When done you can copy the file to /etc/hosts and HUP the appropriate services or reboot.
Bookmarks