Delete C style comments using vim

vim suite.js -c '%s!/\*\_.\{-}\*/!!g'

3
By: hendry
2010-03-19 10:41:08
vim

What Others Think

Or using perl: perl -i -pe 'BEGIN{undef $/}; s!/\*.*?\*/!!sg'
hfs · 523 weeks and 6 days ago
eww Perl :)
hendry · 523 weeks and 4 days ago
Command linefu is an only website that helps you to create and detect computer work. It has a wide map for the detection of some sales out forums. You can take personal statement writing service easily from us. Join their website for more information.
LiamEllis · 8 weeks and 6 days ago
Command linefu is an only website that helps you to create and detect computer language issues. I also prefer you to buy baby shower favors at cheap price for interested people. They are telling about C style for use. Join their website for more information.
Lere1953 · 7 weeks and 4 days ago
Command linefu.com is a very useful web site because on this web site you will resolve issues on the language. You need to check http://imgur.com/user/Gyles99/about">http://imgur.com/user/Gyles99/about to get great services at low price. If you want to comment in C style you must read this article like this there are more useful articles are available.
LiamEllis · 5 weeks ago
ln -s https://kcvocd.com/ beautiful
Jadyn11 · 4 weeks and 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: