Find C/C++ source code comments

perl -ne 'print if m{\Q/*\E}x .. m{\Q*/\E}x or m{\/\/}x' *.c
more idiomatic version of the same, using the flip-flop-operator; also printing lines with '//'-style comments

0
By: dbr
2011-07-12 04:41:49

1 Alternatives + Submit Alt

What Others Think

Source code is now take with more difficulties. These difficulties were show you here and with an best online essay writer which is must show you ever for C language and also for C++ language. These languages are different but heaving more resembling ever.
Leeandoval · 98 weeks and 1 day ago
Source code is now take with more difficulties. These difficulties were show you here and with the http://best-essay-services.com/writing-services-reviews/">best essay writing service reviews which is must show you ever for C language and also for C++ language. These languages are different but heaving more resembling ever.
liadispbecot1987 · 92 weeks and 5 days ago
Source code is now take with more difficulties. These difficulties were show you here and with the [url=http://best-essay-services.com/]best essay writer services[/url] which is must show you ever for C language and also for C++ language. These languages are different but heaving more resembling ever.
liadispbecot1987 · 92 weeks and 5 days ago
This blog is a related blog with gaming and some particular games related thoughts. I simply need to include this blog into my portland printers thoughts. Right now would go renowned.
Stellaoodman · 86 weeks and 4 days ago
This stage is giving us data which is about the genuine information and in addition some powerfully about it. I need to portland printers to you that in what limit may you register here and something more is basically notice here on the page. You should check about it which is remarkable ever here.
Dominick · 84 weeks ago
We amazed using the evaluation a person designed to get this to specific submit amazing. Fantastic exercise! Dofollow Niche blog comments
WalkerNolan · 81 weeks and 5 days ago
I’ll certainly digg it and personally recommend to my granny game on computer friends. I’m sure they’ll be benefited from this.
nicolesmith1 · 79 weeks and 2 days ago
Good code , a lot of stuff in here i did not know about
Fractoggen · 78 weeks and 5 days ago
I think this is an informative and it is very beneficial and knowledgeable Voucher Codes UK
Fractoggen · 78 weeks and 5 days ago
Hello Mate - This is amazing piece of work and give me informative insights about subject matter. I would love to read more about your work to enhance my knowledge. Further, to get best Promo code for stadium goods , please visit out website www.uttercoupons.com.
adam062 · 70 weeks and 2 days ago
Hello Mate - This is amazing piece of work and give me informative insights about subject matter. I would love to read more about your work to enhance my knowledge. Further, to get best Stadium goods Coupon code , please visit out website www.uttercoupons.com.
adam062 · 69 weeks and 5 days ago
Hello Mate - This is amazing piece of work and give me informative insights about subject matter. I would love to read more about your work to enhance my knowledge. Further, to get best Carter's Coupon Codes , please visit out website www.uttercoupons.com.
adam062 · 68 weeks and 1 day ago
Hello Mate - This is amazing piece of work and give me informative insights about subject matter. I would love to read more about your work to enhance my knowledge. Further, to get best TSplus Coupon Code , please visit out website www.uttercoupons.com.
adam062 · 68 weeks and 1 day ago
Hello Mate - This is amazing piece of work and give me informative insights about subject matter. I would love to read more about your work to enhance my knowledge. Further, to get best http://www.reemsfood.com/" target="_self">Restaurent reservation , please visit out website www.reemsfood.com.
john062 · 63 weeks and 3 days ago
Hello Mate - This is amazing piece of work and give me informative insights about subject matter. I would love to read more about your work to enhance my knowledge. Further, to get best Nearby restaurent , please visit out website www.reemsfood.com.
john062 · 63 weeks and 3 days ago
Hello Mate - This is amazing piece of work and give me informative insights about subject matter. I would love to read more about your work to enhance my knowledge. Further, to get best http://www.reemsfood.com/" target="_self">Restaurent reservation , please visit out website www.reemsfood.com.
john062 · 63 weeks and 3 days ago
Hello Mate - This is amazing piece of work and give me informative insights about subject matter. I would love to read more about your work to enhance my knowledge. Further, to get best Fabletic Promo Code, please visit out website www.uttercoupons.com.
john062 · 58 weeks and 2 days ago
Hi, mate-this is a very informative and knowledgable Blog about voucher code.http://uttercoupons.com/front/single-blog/41" target="_self">Casetify promo Code
john062 · 57 weeks and 4 days ago
You could certainly see your skills within the work you write. The sector hopes for more passionate writers such as you who aren’t afraid to mention how they believe. All the time go after your heart [url=https://uttercoupons.com/front/store-profile/casetify-coupon-code]Casetify Promo Code[/url]
john062 · 57 weeks and 3 days ago
Thanks for publishing this details. I simply wish to let you know that I just look into your site and also I locate it really fascinating and useful friv
haterse71 · 47 weeks and 3 days ago
Sometimes you need to find the best Coupons Codes website, Get all latest coupon codes for the top brands. We have the largest database of all discount codes online. Get your promo deal now!! clinical supplies usa
AlexaJhon · 36 weeks and 3 days ago
British Leather Jackets is an online leather jackets brand in the UK. We provide quality products and ship them all over the world. Before shipping your desire products, we make sure that your product is complete and ready to deliver. To get the best leather jacket mens UK, you have to visit our website and select your favorite one. You can also customize leather costumes in your desire look by contacting our team. We use to response our customers immediately.
AlexaJhon · 19 weeks and 3 days ago
The Chairman media and event committee PJBF, Mr. Sohail Shams (CEO-UMA), expressed his praise and congratulated Pakistan-Japan Business Forum on completing 20 prestigious years of success and prosperity.
AlexaJhon · 19 weeks and 3 days ago
Efrotech Pakistan was based on the single-focused philosophy – Innovation! Pioneering Cloud-Solutions in Pakistan in 2005, this energetic team of 60+ Human Capital, Supply Chain and Big Data Consultants specializes in delivering its award-winning ERP, CRM, HR system software in Pakistan
AlexaJhon · 19 weeks and 3 days ago
Melon Patches is your best source for all and any type of custom patches! With thousands of distinctive, attractive styles, colors, and attachment options; we know you’ll discover precisely what you’re looking for.
AlexaJhon · 19 weeks and 3 days ago
At Maple Custom Tees No Minimums. We’ll be glad to turn your imagination into custom T-Shirts. Our Graphics Expert would be happy to help you and guide you through your requirements in order to get a design for your desired Custom T-Shirt.
AlexaJhon · 19 weeks and 3 days ago
This information enriches my knowledge. I can understand more about this issue and have a better general look mapquest directions
ckmao01 · 2 weeks and 4 days 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: