ITBLG
About
Find IP Addresses with awk
July 26, 2019 - Reading time: ~1 minute
awk '{match($0,/[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/); ip = substr($0,RSTART,RLENGTH); print ip}'
Categories
General (1)
Linux (2)
Tags
awk
aws
crt
csr
dpkg
gpg
htaccess
humor
ip
iso
linux
melt
mlt
nfs
openssl
pem
pixbuf
postfix
rewrite
sort
ssh
ubuntu