UNIX Script To Remove Hosts from Hosts file

Discussion in 'Perl' started by Bla, Apr 8, 2005.

  1. Bla

    Bla Guest

    Hello,

    Does anyone have a script that would remove the appropriate line from
    the hosts file on a UNIX box. This might be a tricky one?

    Let's say we have a list of hosts and associated ip's we wanted
    removed from the hosts file on a UNIX box....

    MAybe sed would do it? Would like a few suggestions.

    Thanks
     
    Bla, Apr 8, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. dpackwood
    Replies:
    3
    Views:
    1,872
  2. Javier
    Replies:
    2
    Views:
    997
    Markus Schoder
    Oct 5, 2007
  3. Ilmari Heikkinen
    Replies:
    3
    Views:
    302
    Ilmari Heikkinen
    Dec 11, 2004
  4. Bla
    Replies:
    1
    Views:
    240
    Tad McClellan
    Apr 10, 2005
  5. Srikant
    Replies:
    1
    Views:
    543
    Greg Bacon
    Sep 29, 2007
Loading...

Share This Page