How do I extract lines from one file containing a list of words from another file? I've tried all the suggestions on this website and the output is incomplete. File 1 showing list of proteins I'd like to search in file 2 and extract the complete set of lines containing the information I need. Q14157 Q14444 P23246 Q96EP5 Q9UN86 Q14011 Q7Z739 Q9Y383 Q96I24 Q9NP61 P29558 P51116 P00441 Q2TBT7 Q9NZI8  File 2 containing (incomplete paste here on this section) the info to be extracted from the list in file 1. P21796  260 Phosphoserine   S   1 P21796  266 N6-acetyllysine K   4 P21796  266 Ubiquitination  K   3 P21796  274 N6-acetyllysine K   1 P21796  274 Ubiquitination  K   3 P18848  45  Sumoylation K   1 P18848  45  Ubiquitination  K   2 P18848  53  Sumoylation K   1 P18848  55  Ubiquitination  K   2 P18848  69  Phosphoserine   S   4 P18848  75  Ubiquitination  K   2 P18848  88  Ubiquitination  K   2 P18848  107 Phosphothreonine    T   1 P18848  114 Phosphothreonine    T   1 P18848  115 Phosphothreonine    T   1 P18848  119 Phosphothreonine    T   1 P18848  213 Phosphothreonine    T   1 P18848  215 Phosphoserine   S   1 P18848  219 Phosphoserine   S   4 P18848  224 Phosphoserine   S   3 P18848  231 Phosphoserine   S   1 P18848  235 Phosphoserine   S   1 P18848  245 Phosphoserine   S   3 P18848  248 Phosphoserine   S   3 P18848  267 Sumoylation K   1 P18848  277 Ubiquitination  K   1 P18848  293 Phosphothreonine    T   1 P18848  295 Phosphotyrosine Y   1 P18848  335 Ubiquitination  K   2 P18848  343 N6-acetyllysine K   1 P18848  348 N6-acetyllysine K   1 P23246  7   Dimethylation   R   1 P23246  7   Omega-N-methylarginine  R   2 P23246  8   Phosphoserine   S   3 P23246  9   Asymmetric dimethylarginine R   1 P23246  9   Dimethylation   R   1 P23246  9   Methylation R   1 P23246  9   Omega-N-methylarginine  R   3 P23246  19  Dimethylation   R   1 P23246  19  Methylation R   1 P23246  19  Omega-N-methylarginine  R   2 P23246  25  Dimethylation   R   1 P23246  25  Methylation R   1 P23246  25  Omega-N-methylarginine  R   2 P23246  32  Dimethylation   R   1 P23246  32  Methylation R   1 P23246  33  Phosphoserine   S   8 Q14011  17  Phosphothreonine    T   1 Q14011  21  Phosphoserine   S   1 Q14011  33  Phosphoserine   S   1 Q14011  47  Methylation R   1 Q14011  71  Phosphoserine   S   3 Q14011  84  Ubiquitination  K   2 Q14011  94  Dimethylation   R   1
extract lines that match a list of words in another file I have file 1 which have those lines:  ATM 1434.972183 BMPR2 10762.78192 BMPR2 10762.78192 BMPR2 1469.14535 BMPR2 1469.14535 BMPR2 1738.479639 BMS1 4907.841667 BMS1 4907.841667 BMS1 880.4532628 BMS1 880.4532628 BMS1P17 1249.75 BMS1P17 1249.75 BMS1P17 1606.821429 BMS1P17 1606.821429 BMS1P17 1666.333333 BMS1P17 1666.333333 BMS1P17 2108.460317 BMS1P17 2108   And file 2 have a list of words:  ATM BMS1   So, the output will be like this:  ATM 1434.972183 BMS1 4907.841667 BMS1 4907.841667 BMS1 880.4532628 BMS1 880.4532628   I know it's really a duplicate question, but I tried all types of grep and sed and awk, maybe it will works with you guys with this tiny example  but I have a very huge file &gt; 1M lines and all previous way doesn't help  it return part of the lines that containing those words although there are other words in file 2 that matches the lines from file 1
The space $ C^1[0,1] $- the space of all continuously differentiable functions on $ [0,1]$ is not a Banach space with respect to the sup norm,$ \|.\|_{\infty} $ since the uniform limit of a continuously differentiable function need not be differentiable.  How can I illustate this statement using a counter example? Can I use $ f_{n}=\frac1 n \sin nx $ as a counter example?  Also, is $ C^1[0,1] $ is same as the space given by $ X=\{f\in C^1[0,1]:f(0)=0 \}$. Can I use the same example to show that this is not a Banach space?  More help is appreciated! Thanks! What tools (ideally affordable ones) would folks recommend for creating a website wireframe? I have an integrated webcam in my laptop. I know that it works and that ubuntu recognized it because at installation it asked if I wanted a photo taken for some kind of image associated with my account. When I look in system settings, I do not see any webcam in the hardware section. I would like to disable the webcam like you can do in Windows, but as I can't find it in my hardware section, how can I disable it? I cannot even unplug it as it is integrated into the monitor. Am I looking in the wrong place?? I am using 12.04 How to convert an instance of std::string to lower case I am given that $V$ is n-dimensional vector space over $\mathbb{C}$ and $T \in L(V)$. And $T$ has least $m$ distinct nonzero eigenvalues. How do I show that $\text{null}(T^{n-m}) = \text{null}(T^{n-m+1})$?  I'm really not sure how to start here so just the first couple steps would be very helpful. Thanks!! Can I travel within the Schengen area without a passport if I have my residency permit card? I recently installed Ubuntu 14.04, then I installed lamp-server and placed my webpages in /var/www directory, but when I opened localhost in the browser there was nothing. I think that happened because Zend updated Apache.  Whatever the reason may be, I want to know where to keep my php files so that I can access them from my browser. How do  form? Why are they called the "time-reversed" versions of a black hole? What's an "eternal" black hole? How come a white hole is only encountered if you remove the star from the space-time surrounding the black hole? Why is it that if you add any matter to the area that the white hole disappears? Any explanation greatly appreciated. What's the best option to display Unicode text (hebrew, etc.) in VB6 I have some customers who want to use our speech therapy software in Hebrew.  The programs are in VB6. The best option I'm aware of are:   use the Forms 2.0 controls from MS Office, but you can't distribute them.    $899   $499   Any other options? Is there a "previous sibling" selector? I was hoping to find a more "mathematical" proof, instead of proving logically $\displaystyle \sum_{k = 0}^n {n \choose k}^2= {2n \choose n}$.  I already know the logical Proof:  $${n \choose k}^2 = {n \choose k}{ n \choose n-k}$$  Hence summation can be expressed as:  $$\binom{n}{0}\binom{n}{n} + \binom{n}{1}\binom{n}{n-1} + \cdots + \binom{n}{n}\binom{n}{0}$$  One can think of it as choosing $n$ people from a group of $2n$  (imagine dividing a group of $2n$ into $2$ groups of $n$ people each. I can get $k$ people from group $1$ and another $n-k$ people from group $2$. We do this from $k = 0$ to $n$. Show that the equation, $x^3+10x^2-100x+1729=0$ has at least one complex root $z$ such that $|z|>12.$ What is the best solution for database connection pooling in python? I have developed some custom DAO-like classes to meet some very specialized requirements for my project that is a server-side process that does not run inside any kind of framework.    The solution works great except that every time a new request is made, I open a new connection via MySQLdb.connect.    What is the best "drop in" solution to switch this over to using connection pooling in python?  I am imagining something like the commons DBCP solution for Java.    The process is long running and has many threads that need to make requests, but not all at the same time... specifically they do quite a lot of work before brief bursts of writing out a chunk of their results.  Edited to add: After some more searching I found  which looks decent, but as I'm relatively new to python I guess I just want to make sure I'm not missing a more obvious/more idiomatic/better solution. Why does a monopole not radiate energy in electodynamics? What is the best way to solve equations like the following:  $9x \equiv 33 \pmod{43}$  The only way I know would be to try all multiples of $43$ and $9$ and compare until I get $33$ for the remainder.  Is there a more efficient way ?   Help would be greatly appreciated! I am considering trying to setup a  system. It seems like this would be pretty straight forward if I had two graphics cards or if I didn't need hardware based OpenGL acceleration. Is it possible to setup a multi seat system with only a single dual-headed graphics card? Zero module of differentials implies finite extension? "Back" and "Install Now" buttons grayed out in 14.04 installer The "Back" and "Install Now" buttons are grayed out in the 14.04 installer. How do I restore them? XPath select node with namespace What ensures big holes in my bread?