grep IP addresses with regular expressions

If addresses.txt contains lines of addresses, this grep command will give you only the lines with a valid IP address and nothing else.

cat addresses.txt | grep '^[0-9]\{1,3\}.[0-9]\{1,3\}.[0-9]\{1,3\}.[0-9]\{1,3\}$'`

Comments

Popular posts from this blog

How to fix the weird audio bug in Kingdom Come: Deliverance

How to install and play Curse of Monkey Island on Android

How to get rid of coil whine just by tweaking BIOS

How to fix the Anno 1404 out of memory error

Intel HD Graphics problem "Display driver stopped responding and has recovered"

Create a sleep timer for Youtube, Twitch, Netflix etc. on Windows 10