I have Sample file s1.txt like this:    Sample.log.54   Sample.log.56   Sample.log.57   Sample.log.58   Sample.log.59   Sample.log.110   Sample.log.113   Sample.log.114   Sample.log.115   Sample.log.116   Sample.log.117   Sample.log.118   Sample.log.119   Sample.log.120   Sample.log.121   Sample.log.122   Sample.log.112   Sample.log.123   Sample.log.124   Sample.log.140   In the folder i have many other files. but i need to grep particular string from the files that are listed in s1.txt. I should not read all the files which are present in the folder.
I am trying to run grep against a list of a few hundred files:  $ head -n 3 &lt;(cat files.txt) admin.php ajax/accept.php ajax/add_note.php   However, even though I am grepping for a string that I know is found in the files, the following does not search the files:  $ grep -i 'foo' &lt;(cat files.txt)  $ grep -i 'foo' admin.php The foo was found   I am familiar with the -f flag which will read the patterns from a file. But how to read the input files?  I had considered the horrible workaround of copying the files to a temporary directory as cp seems to support the &lt;(cat files.txt) format, and from there grepping the files. Shirley there is a better way.
Why is (sizeof(int) > -1) false? In BibTeX, I need to cite another entry as a note/comment of a first one, something like:  @article{Paper1, author = {Author A.}, journal = {The Journal of XX}, number = {1}, pages = {4252}, year = {2000}, note = {see updated results in \cite{Paper2}    } }  @article{Paper2, author = {Author B.}, journal = {The Journal of YY}, number = {2}, pages = {1}, year = {2001} }   Could you give a suggestion in doing this?  I think my need is not really fitting to what proposed here: Say I have a Python function that returns multiple values in a tuple:  def func():     return 1, 2   Is there a nice way to ignore one of the results rather than just assigning to a temporary variable? Say if I was only interested in the first value, is there a better way than this:  x, temp = func() How do I use superposition to solve a circuit? Yes, this is a pedagogical question. While answering another recent question, I wanted to refer the OP to concise instructions for using superposition to solve circuits. I found that all the easily found resources online were somewhat deficient. Typically they were unclear about what kinds of circuits superposition applies to, or about the actual method to apply the superposition theorem to a circuit problem. So,   What kinds of circuits can be solved by superposition?  How are different kinds of sources treated when solving by superposition?  What are the steps to solve a circuit using the superposition theorem? Is Java "pass-by-reference" or "pass-by-value"? I want to install a portable Tex Live in windows 10. But after searching online I just get this from .  The -portable installer option (or V command in the text installer or corresponding GUI option) creates a completely self-contained TEX Live installation under a common root and forgoes system integration. You can create such an installation directly on a USB stick, or copy it to a USB stick afterwards. To run TEX using this portable installation, you need to add the appropriate binary directory to the search path during your terminal session, as usual. On Windows, you can double-click tl-tray-menu at the root of the installation and create a temporary ‘tray menu’ offering a choice of a few common tasks, as shown in this . The ‘More…’ entry explains how you can customize this menu.  Any more instructions in detail? What should I do? Mapping half-plane to unit disk? Say you have the half-plane $\{z\in\mathbb{C}:\Re(z)&gt;0\}$. Is there a rigorous explanation why the transformation $w=\dfrac{z-1}{z+1}$ maps the half plane onto $|w|&lt;1$? I've recently gotten into The Flash TV show, and so I've been reading about his powers. What I don't understand is why his typical rogues pose a threat - it seems like there should be very little limit to his powers.  He can go back in time, so if he loses a battle or the bad guys do something, he can go back and preempt it. In the new 52, he can all but predict the immediate future, so he can see bad things that are going to happen and stop them. He can phase matter through matter, or let matter pass through him. This means he is all but immune to weapons fire.  I haven't read enough of the old comics so I don't the know challenges he's had. For a guy who can't be attacked, can time-travel and can race around the globe several times in a minute, I can't imagine there is much that could pose a threat. In the book , at page 27 we find the exercise asserting that       Exercise I.XXXVI.   The underlying space of a zero-dimensional scheme is discrete; if the scheme is Noetherian, it is finite.     Thoughts I thought that a zero-dimensional scheme is one such that, in every local ring $\mathscr O_{X,p}$, the only prime ideal is its unique maximal ideal $\mathfrak m_{X,p}.$ Hence, supposing that $X=\operatorname{Spec} R$ is affine, we deduce that every prime ideal is maximal, so each ponit in $X$ is closed. But how does this imply the discreteness? It only implies the Hausdorff-ness of $X$, right? Furthermore, I cannot perceive what the "Noetherianity" has to do with the finiteness claimed here. In the affine case, it seems to be claiming that there are only a finite number of prime ideals in a Noetherian ring, if its scheme is zero-dimensional? For example, $\mathbb Z$ is a Dedekind domain, hence its scheme is zero-dimensional, but it has infinitely many primes: does this contradict the statement?    Thanks in advance for any reference or hint, and point out any inappropriate point if any is presented. Edit I see why my example cannot work now: it is one-dimensinoal: don't forget the pirme $(0)$. But I am still wondering why the statement is true... Gauss's Law with Moving Charges Why can't I buy the Windhelm house (Hjerim)? I've finished the Stormcloak storyline, and now cannot become a Thane of Windhelm without buying Hjerim. The Steward keeps saying something has happened and he can't sell it right now.  What the heck am I missing? I've been doing every random little quest from people in town I can find, hoping to unlock the house. I'm well over the 5/5 requirement of helping people.  Any ideas? Where is Jon going? At the end of S08E06 of Game of Thrones, Jon Snow along with Tormund and others of the Night's Watch      leave the Night's Watch.   and go into the woods.  Where are they going? And why? Cauchy-Schwarz inequality proof (but not the usual one) Before you downvote/vote-to-close, I am not asking for a proof of: $$\sum^n_{i=1}a_ib_i\le\sqrt{\sum_{i=1}^na_i^2}\sqrt{\sum^n_{i=1}b_i^2 } $$ Which is what EVERY link I've found assumes is the inequality (for a proof of that see:  )    I am reading a book that claims the Cauchy-Schwarz inequality is actually: $$\vert\langle x,y\rangle\vert\le\Vert x\Vert\Vert y\Vert$$ where $\Vert x\Vert :=\sqrt{\langle x,x\rangle}$  with the additional claim: equality holds $\iff\ x,y$ are linearly dependent  I cannot find a proof of this claim (only proofs for the dot product inner product). My question is: what is the simplest way to prove this (I define simplest to mean "using as few definitions outside of the inner product itself as possible" - so that's not including Gramm-Schmitt orthonormalisation, for example.)  I've just found some possible answers in the links on the right (annoyingly) but fortunately I have a second, albeit softer, question:  What inequalities that are common for say $\mathbb{R}^n$ are actually based on the inner product?   (In future I will check this site first, I was targeting lecture notes and such in my search)  Addendum: I want to use this on not-finite dimensional vector spaces. I've found one proof that relies on finite-ness. Access POST values in Symfony2 request object According to the Page 87 in Kruschke: Doing Bayesian Data Analysis, the author says that the mean of a distribution is a value that minimizes the variance of a probability distribution, for example, a normal distribution. The following is what is mentioned in the page:  It turns out that the value of $ M $ that minimizes $ ∫dx p(x)(x−M)^2$ is $E[X] $. In other words, the mean of the distribution is the value that minimizes the expected squared deviation. In this way, the mean is a central tendency of the distribution.  I have read the paragraph and kind of understood what the author is trying to say but I wonder how this can be written mathematically using the above equation or any other ways. Force NTFS permissions inheritance for newly created files Does anybody know a way to force that all files that get created inside some folder inherit the NTFS permissions of that folder.  The problem is the following:  I have a third party software that is creating PDF files inside a certain folder, but the problem is that those files get created with only the permissions for that user and for the administrators group, the file doesn't inherit the permissions of the folder it is in (Include inheritable permissions... is not marked on the files that get created), which give access to other groups of users also. There are two syntaxes for command substitution: with dollar-parentheses and with backticks. Running top -p $(pidof init) and top -p `pidof init` gives the same output. Are these two ways of doing the same thing, or are there differences? If that's not possible, then a way to trigger the Dock on the screen with mouse without moving my cursor to the bottom of the screen is also an acceptable solution (I know that the launchpad appears on the screen with Dock)  Also i did see the  about this. Add an alert when answering a question that has at least a close vote as duplicate I have one feature-request with the objective of having duplicate questions with no answers:   To (try to) avoid people answering duplicate questions, add an alert that says the question has a probable duplicate if it has a close vote as Exact duplicate, asking the answerer to go to the original and answer there.   What do you think? My objective is letting the duplicate question exist for search purposes, but the answers centralized in the root question. Calculating proportional area of polygon within another layer's polygon using QGIS?