grep -Eo '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' /etc/hosts | sort | uniq
[引用元] (http://superuser.com/questions/202818/what-regular-expression-can-i-use-to-match-an-ip-address)
Go to list of users who liked
More than 5 years have passed since last update.
grep -Eo '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' /etc/hosts | sort | uniq
[引用元] (http://superuser.com/questions/202818/what-regular-expression-can-i-use-to-match-an-ip-address)
Register as a new user and use Qiita more conveniently
Go to list of users who liked