in reply to Match IP from 2nd line and Print Hostname from 1st line
If you want to match the whole hostname, you will need to expand the regular expression matching its name. See perlre on what \w+ matches and also on how to include other characters in that matching.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Match IP from 2nd line and Print Hostname from 1st line
by ArifS (Beadle) on Aug 01, 2016 at 13:33 UTC | |
by Marshall (Canon) on Aug 01, 2016 at 17:31 UTC | |
by ArifS (Beadle) on Aug 02, 2016 at 14:39 UTC |