Поиск IP адресов в файле, используя bash

Понадобилось мне тут вывести список всех IP-адресов, встречающихся в файле. Сделать это можно следующей командой:

cat /etc/named.conf | grep listen-on | grep -Eo '([0-9]{1,3}\.){3}[0-9]{1,3}'

24 комментария к “Поиск IP адресов в файле, используя bash

  1. The following time I check out a blog, I really hope that it does not dissatisfy me as long as this. I mean, I know it was my selection to read, yet I actually thought youd have something fascinating to say. All I listen to is a bunch of yawping regarding something that you can fix if you werent also busy looking for attention.

  2. This is the right blog for anybody that wishes to learn about this topic. You recognize so much its virtually difficult to argue with you (not that I actually would want?HaHa). You definitely placed a new spin on a subject thats been written about for several years. Wonderful stuff, simply wonderful!

  3. There are some interesting moments in this short article however I don?t understand if I see every one of them center to heart. There is some validity however I will certainly hold viewpoint up until I look into it additionally. Great short article, thanks and also we want more! Added to FeedBurner as well

  4. An excellent share, I simply given this onto a colleague who was doing a little analysis on this. And he actually acquired me breakfast because I located it for him. smile. So let me reword that: Thnx for the reward! However yeah Thnkx for spending the moment to discuss this, I feel strongly regarding it as well as like reading more on this topic. Ideally, as you become expertise, would certainly you mind upgrading your blog with even more details? It is extremely valuable for me. Big thumb up for this article!

  5. Aw, this was a really nice article. In idea I wish to place in creating similar to this additionally? taking some time and also real initiative to make an excellent short article? but what can I claim? I hesitate alot and never seem to obtain something done.

  6. After research a few of the blog posts on your site currently, and I absolutely like your means of blogging. I bookmarked it to my book mark website list as well as will certainly be inspecting back quickly. Pls have a look at my internet site also and let me recognize what you assume.

  7. This may be the appropriate weblog for anybody who hopes to discover this topic. You realize so much its virtually challenging to argue to you (not too I actually would want…HaHa). You actually put a new spin with a topic thats been discussing for a long time. Wonderful stuff, just fantastic!

  8. Substantially, the post is really the sweetest on this precious topic. I fit in with your conclusions and will eagerly look forward to your coming updates. Simply saying thanks will not simply be enough, for the awesome lucidity in your writing. I will at once grab your rss feed to stay abreast of any updates. Genuine work and much success in your business efforts!

  9. That is a really amazing powerful resource that you’re offering and you just provide it away cost-free!! I that can compare with discovering websites which comprehend the particular valuation on providing you with fantastic learning resource for zero cost. We truly dearly loved examining this web site. Have fun here!

  10. Oh my benefits! an incredible short article guy. Thanks However I am experiencing problem with ur rss. Don?t know why Not able to subscribe to it. Is there any individual obtaining similar rss issue? Anyone that understands kindly respond. Thnkx

  11. The next time I read a blog site, I really hope that it does not dissatisfy me as high as this. I imply, I understand it was my option to check out, however I in fact assumed youd have something interesting to claim. All I listen to is a bunch of grumbling concerning something that you can fix if you werent also hectic trying to find focus.

Оставить ответ

Ваш адрес email не будет опубликован. Обязательные поля помечены *