Remove all lines beginning with words from another file

for wrd in `cat file2` ; do sed -i .bk "/^$wrd/d" file1; done
Given that file1 has bunch of lines (i.e. TSV file with first column as row titles), and file2 has bunch of words (i.e. row titles that are in file1), this command takes every word from file2, and removes every line in file1 that starts with that word.

0
2012-04-30 06:08:12
sed

What Others Think

It is a nice share from the author because it is about coding. I often do not read the article a just ignore them but I find it helpful that also you need to buy assignment at assignmentman.co.uk to complelte your task easily and I will share this useful article with people.
Lere1953 · 80 weeks and 6 days ago
I am a regular visitor of this website and through this site, we can learn more about the commands and the www.brassbedofva.com way we can use it for doing various kinds of tasks. The above command is used to remove all lines beginning with words from another file. I am looking here for more such commands.
Alyssalauren · 9 weeks and 2 days ago
Incredible articles and awesome design. Your blog entry merits the greater part of the positive input it"s been getting. face mask
jackson2321 · 6 weeks and 6 days ago
Incredible articles and awesome design. Your blog entry merits the greater part of the positive input it"s been getting. ??
jackson2321 · 6 weeks and 3 days ago
A lot of people having an incorrect image about the cash advance loans or sometimes refer it as bad credit payday loans. http://www.ironandrailings.ca">Toronto Iron Railings
jackson2321 · 6 weeks and 2 days ago
An individual's song is certainly impressive. You will have certain rather qualified musicians and artists. That i like everyone one of the best for results. onewalmartwire.com
KayGasaway · 5 weeks ago
Extraordinary things you've generally imparted to us. Simply continue written work this sort of posts.The time which was squandered in going for educational cost now it can be utilized for studies.Thanks https://payslipview.pro/
KayGasaway · 4 weeks and 3 days ago
When a blind man bears the standard pity those who follow…. Where ignorance is bliss ‘tis folly to be wise…. libertyland
KayGasaway · 2 weeks and 6 days ago
I think this is one of the most significant information for me. And i’m glad reading your article. But should remark on some general things, Food Lifestyle
KayGasaway · 2 weeks and 6 days ago
When a blind man bears the standard pity those who follow…. Where ignorance is bliss ‘tis folly to be wise…. Collectible album signed
KayGasaway · 2 weeks and 5 days ago
You've completed in excellent work. t suggest to my frtends ind personilly wtll certitnly dtgtt. t'm conftdent they'll be gitned from thts webstte. Soundwave Art App
KayGasaway · 2 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. buy cheap Instagram followers
KayGasaway · 2 weeks and 5 days ago
For a long time me & my friend were searching for informative blogs, but now I am on the right place guys, you have made a room in my heart! http://instachatbot.io">chatbots for shopify
jackson2321 · 2 weeks and 5 days ago
Excellent article. Very interesting to read. I really love to read such a nice article. Thanks! keep rocking. plataforme streaming
JaydenShaw · 2 weeks and 4 days 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! ???????
KayGasaway · 2 weeks and 2 days ago
I definitely enjoying every little bit of it. It is a great website and nice share. I want to thank you. Good job! You guys do a great blog, and have some great contents. Keep up the good work. tv disposal in woodbridge
JaydenShaw · 2 weeks and 2 days ago
Nice post. I was checking constantly this blog and I’m impressed! Extremely useful info specially the last part I care for such information a lot. I was seeking this certain info for a long time. Thank you and good luck. ?????66
KayGasaway · 2 weeks and 1 day ago
Pretty good post. I have just stumbled upon your blog and enjoyed reading your blog posts very much. I am looking for new posts to get more precious info. Big thanks for the useful info. Legit online dispensary shipping worldwide
KayGasaway · 2 weeks and 1 day ago
This particular papers fabulous, and My spouse and i enjoy each of the perform that you have placed into this. I’m sure that you will be making a really useful place. I has been additionally pleased. Good perform! [pii_email_9adeb2eb81f173c673a5]
JaydenShaw · 2 weeks and 1 day ago
I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here! keep up the good work... [url=https://www.platinumpavingkc.com/]asphalt driveway resurfacing in Kansas City[/url]
JaydenShaw · 1 week and 5 days ago
I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here! keep up the good work... asphalt driveway resurfacing in Kansas City
JaydenShaw · 1 week and 5 days ago
Admiring the time and effort you put into your blog and detailed information you offer!.. casino
KayGasaway · 1 week and 5 days ago
This article was written by a real thinking writer. I agree many of the with the solid points made by the writer. I’ll be back. towing services
JaydenShaw · 1 week and 4 days ago
This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free. 20Bet App Download
JaydenShaw · 1 week and 4 days ago
You know your projects stand out of the herd. There is something special about them. It seems to me all of them are really brilliant! http://articlewritting565.wikidot.com/blog:372">ufabet
jackson2321 · 1 week and 2 days ago
You have done a great job on this article. It’s very readable and highly intelligent. You have even managed to make it understandable and easy to read. You have some real writing talent. Thank you. buy google voice number
JaydenShaw · 1 week and 2 days ago
Thank you because you have been willing to share information with us. we will always appreciate all you have done here because I know you are very concerned with our. how to write a business plan
KayGasaway · 1 week and 1 day ago
I was surfing the Internet for information and came across your blog. I am impressed by the information you have on this blog. It shows how well you understand this subject. ?????
JaydenShaw · 1 week and 1 day ago
Thanks for the blog loaded with so many information. Stopping by your blog helped me to get what I was looking for. ???????????
jackson2321 · 1 week ago
I definitely enjoying every little bit of it. It is a great website and nice share. I want to thank you. Good job! You guys do a great blog, and have some great contents. Keep up the good work kat.am
jackson2321 · 1 week 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! ??????? ufabet
jackson2321 · 6 days ago
This is very educational content and written well for a change. It's nice to see that some people still understand how to write a quality post! https://soundsmag.com/equipment/keys
JaydenShaw · 2 days ago
I think this is definitely an amazing project here. So much good will be coming from this project. The ideas and the work behind this will pay off so much. FMWhatsapp APK
jackson2321 · 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: