Comment out all lines in a file beginning with string

sed -i 's/^\(somestring\)/#\1/' somefile.cfg

1
By: educatux
2010-01-28 16:56:38
sed

1 Alternatives + Submit Alt

What Others Think

The advantage of these comments include with the help of a single line of code you can perform tasks like the one shared CBD dosage here. This particular comment will comment out all lines in a file beginning with string. I am looking here for more such a tutorial that describes these. Keep sharing more updates.
Alyssalauren · 56 weeks ago
A refined list of the comments is called here for improvement for all viewers. The change of online assignment help is becoming a trend for candidates. Partial success is funded for the comment line and enlisting for the people.
ScottCaplan · 49 weeks and 2 days ago
Great article with excellent idea!Thank you for such a valuable article. I really appreciate for this great information.. face mask
jackson2321 · 46 weeks and 3 days ago
It turns out that even the hottest port has a few places where you can get off the beaten path. Here are some recommendations that will make you feel like you're in the know ??
jackson2321 · 46 weeks and 1 day ago
I'm glad I found this web site, I couldn't find any knowledge on this matter prior to.Also operate a site and if you are ever interested in doing some visitor writing for me if possible feel free to let me know, im always look for people to check out my web site. https://www.ufadna.win/
KayGasaway · 45 weeks and 4 days ago
It was a very good post indeed. I thoroughly enjoyed reading it in my lunch time. Will surely come and visit this blog more often. Thanks for sharing. Pi Email
KayGasaway · 45 weeks and 2 days ago
Preserve the fantastic succeed, Document look at small number of reports using this ?nternet site and additionally I presume the cyberspace web page is normally substantial unique there are found groups about terrific knowledge. http://www.wireonelogin.com
KayGasaway · 44 weeks and 5 days ago
Incredible articles and awesome design. Your blog entry merits the greater part of the positive input it"s been getting. 6 main distractions while driving
jackson2321 · 43 weeks and 4 days ago
I am learning single codes right now, I am excited to try this! Phoenix Popcorn Ceiling Removal
BrentWoods · 43 weeks and 1 day ago
It’s appropriate time to make some plans for the future and it is time to be happy. I have read this post and if I could I wish to suggest you few interesting things or advice. Perhaps you could write next articles referring to this article. I desire to read even more things about it! https://www.foxz88.win/
jackson2321 · 41 weeks and 1 day ago
I'm constantly searching on the internet for posts that will help me. Too much is clearly to learn about this. I believe you created good quality items in Functions also. Keep working, congrats! Pengeluaran Sydney
jackson2321 · 39 weeks and 6 days ago
i never know the use of adobe shadow until i saw this post. thank you for this! this is very helpful. ?????????????
jackson2321 · 39 weeks and 5 days ago
You make so many great points here that I read your article a couple of times. Your views are in accordance with my own for the most part. This is great content for your readers. http://yousufkhn.alltdesign.com/social-media-services-how-a-web-2-marketing-consultant-will-expand-your-corporation-24028329">Smm services
KayGasaway · 39 weeks and 5 days ago
Your post is very helpful to get some effective tips to reduce weight properly. You have shared various nice photos of the same. I would like to thank you for sharing these tips. Surely I will try this at home. Keep updating more simple tips like this.  spy phone app
jackson2321 · 38 weeks and 4 days ago
Man's lives, such as uncontrolled huge amounts, definitely not while countries furthermore reefs, challenging to seismic disturbance upward perfect apply. click for more info
jackson2321 · 37 weeks and 5 days ago
 If someone week i really ashen-haired not actually pretty, whether you will lite grope a present, thought to follow us to displays bursting with ends of the earth considerably? Inside the impeccant previous, sea ever have dried-up, my hubby and i only may very well be with all of you connected thousands of samsara. bong88
jackson2321 · 37 weeks and 3 days ago
Whoi, excellent, t wondered just how to cure icne. ind found your webstte by google, dtscovered todiy t'm i ltttle obvtous i greit deil. t’ve ilso idded RSS ind sive your webstte. keep us updited. slot666
jackson2321 · 36 weeks and 1 day ago
Interesting topic for a blog. I have been searching the Internet for fun and came upon your website. Fabulous post. Thanks a ton for sharing your knowledge! It is great to see that some people still put in an effort into managing their websites. I'll be sure to check back again real soon. http://www.streetcarsrater.com/forum/topic/238576">Christmas gift
jackson2321 · 35 weeks and 6 days ago
If you don"t mind proceed with this extraordinary work and I anticipate a greater amount of your magnificent blog entries.  why not find out more
jackson2321 · 35 weeks and 5 days ago
We are truly thankful for your blog entry. You will discover a great deal of methodologies in the wake of going to your post. I was precisely scanning for. A debt of gratitude is in order for such post and please keep it up.  Coinboostsignals
jackson2321 · 35 weeks and 2 days ago
It turns out that even the hottest port has a few places where you can get off the beaten path. Here are some recommendations that will make you feel like you're in the know paragon traders
jackson2321 · 35 weeks and 2 days ago
I'm impressed, I must say. Very rarely do I come across a blog thats both informative and entertaining, and let me tell you, you ve hit the nail on the head. Your blog is important.. ?????
jackson2321 · 35 weeks and 1 day ago
Your work here on this blog has been top notch from day 1. You've been continously providing amazing articles for us all to read and I just hope that you keep it going on in the future as well. Cheers! ?????
jackson2321 · 35 weeks and 1 day ago
I am happy to find your distinguished way of writing the post. Now you make it easy for me to understand and implement the concept. Thank you for the post. Canninghill Piers showflat
jackson2321 · 35 weeks and 1 day ago
Good to become visiting your weblog again, it has been months for me. Nicely this article that i've been waited for so long. I will need this post to total my assignment in the college, and it has exact same topic together with your write-up. Thanks, good share. Spare5 Review
seomind · 31 weeks and 1 day ago
It is perfect time to make some plans for the future and it is time to be happy. I’ve read this post and if I could I desire to suggest you few interesting things or tips. Perhaps you could write next articles referring to this article. I want to read more things about it! Spare5 Review
seomind · 31 weeks and 1 day ago
Excellent Blog! I would like to thank for the efforts you have made in writing this post. I am hoping the same best work from you in the future as well. I wanted to thank you for this websites! Thanks for sharing. Great websites! Spare5 Review
seomind · 31 weeks and 1 day ago
It is the intent to provide valuable information and best practices, including an understanding of the regulatory process. Spare5 Review
seomind · 31 weeks and 1 day ago
Very nice article. I enjoyed reading your post. very nice share. I want to twit this to my followers. Thanks !. Spare5 Review
seomind · 31 weeks and 1 day ago
Super site! I am Loving it!! Will return once more, Im taking your food likewise, Thanks. Spare5 Review
seomind · 31 weeks and 1 day ago
As a seller of legal steroids, you can buy Crazy Bulk products, explore stacks and finally get the body you’ve always wanted Spare5 Review
seomind · 31 weeks and 1 day ago
I adore your websites way of raising the awareness on your readers. Spare5 Review
seomind · 31 weeks and 1 day ago
I read your post and I found it amazing! thank! Spare5 Review
seomind · 31 weeks and 1 day ago
Your content is nothing short of brilliant in many ways. I think this is engaging and eye-opening material. Thank you so much for caring about your content and your readers. Spare5 Review
seomind · 31 weeks and 1 day ago
Goizueta carefully (personally) managed all the information that came out of Coca-Cola. He would personally call Wall Street analysts. Any analyst that dared to question him openly or disagree with Coca-Cola's earnings projections would be rebuffed. One such analyst [url=https://chinesebuffetnearmenow.net/iftar-buffet-near-me/Iftar Buffet Near Me]Best Five-Star Buffet Near Me[/url] was Allan Kaplan from Merrill Lynch, who at one point wrote a note to his clients observing that Coca-Cola may be depending on Japan for too much of its profits.
MarcellaKing · 24 weeks and 6 days ago
Keough officially retired in 1993 while Goizueta passed away in October 1997 - succumbing to lung cancer. Ivester succeeded as CEO but behind the scenes, the company Hibachi Grill and Supreme Buffet was in disarrays. People loyal to Keough and to Ivester clashed - with the former group bearing the brunt of the hardship. The current CEO, Neville Isdell (who was loyal to Keough and the only true competitor for the top job back then) was sent into "exile" to Great Britain to head up a bottler.
MarcellaKing · 24 weeks and 6 days ago
I was just looking for this info for some time. After six hours of continuous Googleing, finally I got it in your website. I wonder what’s the Google’s issue that does not rank this type of informative web sites closer to the top. Usually the top websites are full of garbage. law fIRM
mtom78632 · 12 weeks and 4 days ago
Thank you for the article. I’ve truly thought about it before but never wanted to do anything about it. I do think because of my lack of complete understanding. Each day, however, I’m noticing more and more people getting frustrated because they think it is very complicated to understand. Exactly what really encouraged me personally again, however, seemed to be your rationale men and women would like to discuss the situation once they see their own friends commenting on the same thing. That is just how knowledge increases. yesmovies
mtom78632 · 11 weeks and 3 days ago
You can certainly see your enthusiasm within the work you write. The arena hopes for more passionate writers such as you who are not afraid to mention how they believe. Always go after your heart. buy weed online ============= Its like you read my mind! You seem to know so much about this, like you wrote the book in it or something. I think that you can do with some pics to drive the message home a bit, but instead of that, this is magnificent blog. An excellent read. I will certainly be back. ?????
mtom78632 · 11 weeks and 3 days ago
Good blog! I really love how it is easy on my eyes as well equally the info are well written. I am wondering how I could be notified whenever a young position has been made. I experience subscribed to your rss flow which must do the trick! Experience a nice day! ?????
mtom78632 · 10 weeks and 2 days ago
If you’re interested in having a guest blog websiteer please let me recognize. I’ll give you with unique content for your webstie, thanks. Money138================================================ A person essentially assist to make significantly posts I’d state. That is the first time I frequented your website page and to this point? I amazed with the analysis you made to make this particular post incredible. Magnificent process! Dewagame
mtom78632 · 9 weeks and 6 days ago
Many thanks very much for the info. I have been looking for this for a while with Bing and it has been a true undertaking. ??????
mtom78632 · 9 weeks and 2 days ago
J’apprécie cette diapositive toutefois j’en ai auparavant vu de semblable de meilleures qualité supérieure suit for men wedding
mtom78632 · 5 weeks ago
there are many good family resorts that you can find both online and offline, some are very cheap too,, exercise
mtom78632 · 4 weeks and 5 days ago
I am glad that I observed this blog , exactly the right information that I was looking for! . ?????
mtom78632 · 4 weeks and 3 days ago
I and also my friends appeared to be looking through the excellent tips and tricks from your web page and so quickly I had an awful suspicion I never thanked the blog owner for those techniques. All the young men had been as a consequence very interested to study them and already have without a doubt been taking advantage of those things. Appreciate your getting well helpful as well as for deciding upon some excellent subject areas millions of individuals are really wanting to be informed on. My honest apologies for not expressing gratitude to sooner. ???????
mtom78632 · 2 weeks and 2 days ago
After study many of the web sites for your internet site now, i really appreciate your strategy for blogging. I bookmarked it to my bookmark site list and will be checking back soon. Pls have a look at my web-site too and figure out what you consider. cadeaus via de post ============= Thank you so much for this information. You have given my brain a real workout and I am grateful. I love intelligent content that is so well written. Good job. ?????
mtom78632 · 1 week and 5 days ago
Oh my goodness! a wonderful post dude. Many thanks Even so I am experiencing problem with ur rss . Do not know why Can not enroll in it. Will there be everyone getting identical rss difficulty? Anyone who knows kindly respond. Thnkx Bloxburg House Ideas == I was wondering if you ever considered changing the layout of your blog? Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could connect with it better. Youve got an awful lot of text for only having one or two images. Maybe you could space it out better? beverage cans for sale
mtom78632 · 4 days ago
What a rejuvenating shock your posts are. Your posts of this matter is just what I desired to essentially set the history right. You need to keep up your publishing. ???? == I always was concerned in this subject and still am, regards for posting . study in australia from bangladesh without ielts
mtom78632 · 2 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: