in reply to Re^5: Printing first and last line
in thread Printing first and last line

for example 192.168.2.1 reached to 192.168.2.1 so i dont need that, it is giving me that result as well

Replies are listed 'Best First'.
Re^7: Printing first and last line
by hbm (Hermit) on Aug 16, 2012 at 13:35 UTC

    I left a little work for you. Surely you can compare $want and $got, and print only if they differ?