View Single Post
  #5   (View Single Post)  
Old 27th October 2018
mateusrico mateusrico is offline
New User
 
Join Date: May 2008
Posts: 5
Default

Quote:
Originally Posted by ibara View Post
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.
Reply With Quote