I have list of IP:PORT in txt file, they are proxies. I have CASE where i remove it if it's not working (proxy)
sed -i "/$proxy[^0-9]/d" proxy.txt
But it's not working.
I'm trying to delete IP:PORT (line containing that IP:PORT) specified in variable $proxy, on example 78.102.43.251:8080
with sed
Whatever i try I end up deleting multiple lines instead of just one specified in variable.
On lines is nothing except IP:PORT
Thank you
Content of proxy.txt
79.155.89.121:8080
36.78.131.82:3128
115.84.178.37:3128
183.88.112.146:8080
205.237.163.78:80
162.243.202.25:80
186.219.106.4:8080
154.72.192.154:8080
$proxy variable is defined like this:
proxy.txt | while read -r proxy; do