Have inputs like
url1='http://10.25.225.123:32782/actuator/health'
url2='http://10.25.225.321:12345/myappmanagement/health' and so on.
How to get only http://10.25.225.123:32782/ and http://10.25.225.321:12345 for url1 and url2 respectively using the same command?
 
    