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 \;

0
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 · 17 weeks and 4 days ago
hai [url=https://www.google.com]nice![/url]
leonamargret · 15 weeks and 4 days ago
great content! will recommend this site to my friends
looneyhans · 13 weeks and 2 days ago
Excellent website, great work. Your commands couldn’t have most certainly been written any better.
wendyparis19 · 13 weeks ago
helped me alot. thanks again hair extensions new orleans
looneyhans · 12 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 · 10 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 · 9 weeks and 2 days ago
great. nice to know fencinglexingtonky.com
looneyhans · 8 weeks and 5 days ago
nice and helpful! bathroomremodelingcorpuschristi.com
Killersmile · 8 weeks and 2 days ago
awesome site thanks alot business coach phoenix
looneyhans · 5 weeks and 4 days ago
eyelash extensions Great content and will certainly come back again, good job
idasanka · 4 weeks and 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 · 4 weeks and 1 day ago
great job! i l love it! couples counseling
idasanka · 4 weeks ago
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business.
xoheko1229 · 3 weeks and 5 days ago
Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!.. abonnenten24
bojokey283 · 3 weeks and 1 day ago
I'm glad I found this web site, I couldn't find any knowledge on this matter prior to.Also operate a site and if you are ever interested in doing some visitor writing for me if possible feel free to let me know, i am always look for people to check out my web site. automação doméstica
bojokey283 · 3 weeks ago
This article gives the light in which we can observe the reality. This is very nice one and gives indepth information. Thanks for this nice article. digital marketing
bojokey283 · 3 weeks ago
great job! i l love it! couples counseling
gamecax · 2 weeks and 5 days ago
hearing aids corpus christi I think I need more information
yeoyeo · 2 weeks and 3 days ago
Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!.. rubbish removal bridgend
bojokey283 · 1 week and 2 days ago
Admiring the time and effort you put into your blog and detailed information you offer!.. alquiler de carros en barranquilla
bojokey283 · 1 week and 1 day ago
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. Hausautomation
bojokey283 · 6 days ago
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. tree surgeons colchester
bojokey283 · 5 days ago
see more
Alyssalauren · 4 days ago
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. coronavirus isla mujeres
bojokey283 · 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?

commandlinefu.com 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.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

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: