Dump a configuration file without comments or whitespace...

grep -v "\ *#\|^$" /etc/path/to.config
A short, *easy-er* to remember command for stripping whitespace and comments from a config file, (or any file for that matter). Remember regex as: slash, space, star. pound, slash, bar. pointy-hat, dollar. (or "caret, dollar" if you must) :-P

2009-06-30 18:14:46

What Others Think

The above mentioned command is used to dump a configuration file without comments or whitespace. These kinds cbd oils of sites are an excellent opportunity for students to learn any kind of programming language and ask your doubts to experts. I am looking here for more details and to keep up the good work.
Alyssalauren · 77 weeks and 6 days ago
Red lips and rosy cheeks recognition
yeoyeo · 52 weeks and 2 days ago
This is very interesting, but it is necessary to click on this link: australia temporary phone number
CalvinVasquez · 21 weeks and 1 day ago
This is very significant, and yet necessary towards just click this unique backlink: Tampa Pest Control
CalvinVasquez · 20 weeks and 2 days ago
Hmm… I interpret blogs on a analogous issue, however i never visited your blog. I added it to populars also i’ll be your faithful primer. Orlando Pest Control
CalvinVasquez · 20 weeks and 2 days ago
I invite you to the page where you can read with interesting information on similar topics. Tampa Termite Treatment
CalvinVasquez · 20 weeks and 2 days ago
Find the best essays on is my friend's profile page. Orlando Home Renovations
CalvinVasquez · 20 weeks and 2 days ago
When decorating an apartment, choosing a theme is a great way to coordinate the types of decor you will buy from the bedding to the art. Here's our list of the best modern apartment decor ideas. If you're looking for other themes, we have ideas from pink and rustic to blue and bohemian. apartment boiling water
CalvinVasquez · 17 weeks and 5 days ago
At this point you'll find out what is important, it all gives a url to the appealing page: packer cups
CalvinVasquez · 16 weeks and 5 days ago
Interestingly you write, I will address you'll find exciting and interesting things on similar topics. UFABET
CalvinVasquez · 16 weeks ago
Listed here you'll learn it is important, them offers the link in an helpful webpage: Canninghill Piers Brochure
CalvinVasquez · 15 weeks and 2 days ago
I am always searching online for storys that can accommodate me. There is obviously a multiple to understand about this. I feel you made few salubrious points in Attributes moreover. Detain busy, awesome career! Pollen Collection Brochure
CalvinVasquez · 13 weeks ago
Awesome dispatch! I am indeed getting apt to over this info, is truly neighborly my buddy. Likewise fantastic blog here among many of the costly info you acquire. Reserve up the beneficial process you are doing here. reptile lamp fixture
CalvinVasquez · 11 weeks and 3 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: