Find ASCII files and extract IP addresses

find . -type f -exec grep -Iq . {} \; -exec grep -oE "(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)" {} /dev/null \;

By: wuziduzi
2020-09-13 03:06:22

What Others Think

All commands are clearly explained for us with the best examples. It is most helpful for us because too easy for us to follow your post. All the time I came to know about new topics which I like the most from here. more here
zaiyamariya · 13 weeks and 4 days ago
hai [url=]nice![/url]
leonamargret · 11 weeks and 4 days ago
great content! will recommend this site to my friends
looneyhans · 9 weeks and 2 days ago
Excellent website, great work. Your commands couldn’t have most certainly been written any better.
wendyparis19 · 9 weeks ago
helped me alot. thanks again hair extensions new orleans
looneyhans · 8 weeks and 4 days ago
guitar lessons nashville I was just wondering... I'm an android user now but I want to change it to apple. How can I get started?
yeoyeo · 6 weeks and 2 days ago
Thanks for letting us know about this command. I will be now able to trace my own errors in my project. I like tumblr adult content
Davidmal · 5 weeks and 2 days ago
great. nice to know
looneyhans · 4 weeks and 5 days ago
nice and helpful!
Killersmile · 4 weeks and 2 days ago
awesome site thanks alot business coach phoenix
looneyhans · 1 week and 4 days ago
eyelash extensions Great content and will certainly come back again, good job
idasanka · 2 days ago
I haven’t any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us. maison intelligente
bojokey283 · 1 day ago
great job! i l love it! couples counseling
idasanka · 1 day ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: