File without comments or blank lines.

sed 's/^[[:blank:]]*//; s/^#.*//; /^$/d' filename
This will first remove any leading white space. If the line then starts with a comment character, it is cleared. If the result is an empty line, it's deleted. This allows for comment lines with leading white space.

0
2010-12-10 13:24:16

1 Alternatives + Submit Alt

What Others Think

Files without comments or blank lines is the main caption here and apart from that there is nothing that could help people in learning about things in a better way. You can go for essay shark review as it was the good source for us. The person should add something to explain it a bit.
sadamn · 71 weeks and 5 days ago
Unfortunately I didn't understand the command you have shared here. The file without comments or blank lines cbd dosage is the title shared here and i am expecting little more details about it.Hope that you will update more details soon here. Such sites help students to learn programs so easily.
Alyssalauren · 28 weeks and 6 days ago
Awesome things you've generally imparted to us. Simply continue written work this sort of posts. Dr Romain Perez implants dentaires ParisThe time which was squandered in going for educational cost now it can be utilized for studies.Thanks
muneerahmed · 26 weeks and 6 days ago
I am trying this command for Hayward Concrete And Masonry and I am having issues with it, I hope that you will update this.
OwenThatcher · 4 weeks and 6 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: