After many experiments, I need help!Please tell me how to work the following example..
Code:
var=$(cat t.log|awk '!/</'|tail -1)
cat t.log|awk '/$var/,0'
awk not see $var!Why? And most important how to do it?
The main task is a list of url addresses (equal) to remove those whose port is serial
examle:
Code:
http://ex.com:101
http://ex.com:105
http://ex.com:103
http://ex.com:11 #for remove
http://ex.com:12 #
http://ex.com:13 #
http://ex.com:14 #