Bash Script

I have a file called ” hack_attempts_ifgreaterthan.txt”

The content of this file updates throughout the day and appear in this format:

ALL : 26.175.64.18 : deny
ALL : 217.232.178.166 : deny
ALL : 107.41.187.509 : deny

I need the contents of this file to “REPLACE” the text that appears in between the tags # and # of which is located in the file /etc/hosts.allow

Example:

#
ALL : 26.175.64.18 : deny
A…

Leave a Reply

Your email address will not be published. Required fields are marked *