Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Apr 2022 16:10:44 -0400
From:      Robert Huff <roberthuff@rcn.com>
To:        questions@freebsd.org
Subject:   extracting an IPv4 address from text?
Message-ID:  <25160.44484.392802.868667@jerusalem.litteratus.org>

next in thread | raw e-mail | index | archive | help

Hello:
	Let's suppose I want to parse a line from auth.log and extract
the IP address (if any) to stdout.
	I'm assuming there is a robust way to do this using standard
command-line tools ... but my brain is flailing on the exact method.
Anyone have a example they'd be willing to share?  Or is this a
problem already solved?


				Hopefully,


					Robert Huff




				



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?25160.44484.392802.868667>