in reply to Seeker of Regex Wisdom (strings which don't form specific patterns)
Do you want to match lines with IP addresses that start with a comment?
grep '^#.*(?:[0-9]{1,3}\.){3}[0-9]{1,3}'If you want you can 'trap' the IP address and just print that as well. Or did I miss the question?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Seeker of Regex Wisdom (strings which don't form specific patterns)
by ilcylic (Scribe) on Aug 13, 2015 at 15:43 UTC |