Quote:
Originally Posted by ibara
Still not entirely sure what you're asking. Can you write out an actual line you want to change and what you want to change it to?
|
I need a script that finds the subnet related to it in a file containing several subnets of some sort.
./findip.sh 187.221.32.45 /root/country.txt
and as a result:
187.221.32.0/24
I do not have advanced knowledge in bash script to do it.
My language is Portuguese, I'm using google translate to write this.