I have a line like this in my script:  rm "$TEMP_DIR/*.txt"   It fails with this output:  rm: cannot remove 'temp/*.txt': No such file or directory   I don't understand why doesn't that work. What am I doing wrong?
I read that it is a best practice to double quote all of your variable expansions in Bash. I also read that one cannot use a shell glob (wildcard(*)) right after a double quoted variable expansion. These situations conflict when one wants use the value of a regex pattern, expanded out of a variable.   The reason I would sometimes want to combine regex with a wildcard is to keep my regex minimal, neater, in my personal taste.  My particular problem  I downloaded phpmyadmin into my document root directory and unzipped it, but I fail to rename it with mv by a regex pattern I put in a variable, and available when expanding its variable. Here's the exact trace:  userName@compName:/var/www/html# ll total 11336 drwxr-xr-x  3 root root     4096 Feb 14 07:04 ./ drwxr-xr-x  3 root root     4096 Feb 14 06:56 ../ -rw-r--r--  1 root root      612 Feb 14 06:57 index.nginx-debian.html drwxr-xr-x 12 root root     4096 Dec 23 08:50 phpMyAdmin-4.7.7-all-languages/ -rw-r--r--  1 root root 11589684 Dec 23 14:08 phpMyAdmin-latest-all-languages.zip userName@compName:/var/www/html# echo $pma [pP][hH][pP][mM][yY][aA][dD][mM][iI][nN] userName@compName:/var/www/html# mv "$pma"*/ phpmyadmin/ mv: cannot stat '[pP][hH][pP][mM][yY][aA][dD][mM][iI][nN]*/': No such file or directory   If I'll unquote the variable expansion to ${pma} I would indeed be able to combine the variable expansion and the regex, as in ${pma}*, but it is important to me to follow the best practice without exceptions, if I can.  My question  How could I keep the variable expansion double quoted, but still using the extracted value with a wildcard?
When I parent mesh to an armature (automatic weights), the mesh "jumps" forward a bit. If I select armature and switch to edit mode it "jumps" backward a bit.   Why is it happening and how can I fix it? I already applied location, rotation, and scale to the mesh and armature, but it didn't help.  Thank you in advance! I am wondering if there is anything in Marvel comic book canon or in the MCU that says that the Infinity Gauntlet has the power to make someone fall in love with the person wearing the Infinity Gauntlet, or that the wearer of the Infinity Gauntlet can use the Infinity Gauntlet to make two strangers fall in love with each other? Perhaps the combined power of the Mind Stone and the Soul Stone would make two people fall in love. Is there a conventional wisdom to what gear a bike should be left in, when used infrequently? $\{a_n\}$ be a sequence such that $ a_{n+1}^2-2a_na_{n+1}-a_n=0$, then $\sum_1^{\infty}\frac{a_n}{3^n}$ lies in... Let $\{a_n\}$ be a sequence of positive real numbers such that   $a_1 =1,\ \  a_{n+1}^2-2a_na_{n+1}-a_n=0, \ \ \forall n\geq 1$.   Then the sum of the series $\sum_1^{\infty}\frac{a_n}{3^n}$ lies in...  (A) $(1,2]$, (B) $(2,3]$, (C) $(3,4]$, (D)$(4,5]$.   Solution attempt:   Firstly, we figure out what $\frac{a_{n+1}}{a_n}$ is going to look like. We get, from the recursive formula, $\frac{a_{n+1}}{a_n}=1+\sqrt{1+\frac{1}{a_n^2}}$ (remembering the fact that $a_n&gt;0$, the other root is rejected).   We know that, if $\lim_{n \to \infty}\frac{a_{n+1}}{a_n}&gt;1$, then $\lim a_n \to \infty$.   Further, $(a_{n+1}-a_n)= \sqrt{a_n(a_n+1)}&gt;0$. (Again, the other root is rejected due to the same reason).   Hence, $(a_n)$ increases monotonically.   Therefore, the largest value of $\frac{a_{n+1}}{a_n}$ is approximately $1+\sqrt{1+\frac{1}{1}} \approx 2.15$  Now, the sum can be approximated as $\displaystyle\frac{\frac{1}{3}}{1-\frac{2.15}{3}} \approx 1.3$ (In actuality, $\mathbb{sum}&lt; 1.3$).  So, option $(A)$ is the correct answer.   Is the procedure correct?   I have been noticing a handful of this type of questions (based on approximations) lately, and the goal is to find out where the sum / the limit of the sequence might lie.   Is there any "definitive" approach that exploits the recursive formula and gives us the value, or does the approach varies from problem to problem? Jordan normal form for a characteristic polynomial $(x-a)^5$ Write down all the possible Jordan normal forms for matrices with characteristic polynomial $(x-a)^5$. In each case, calculate the minimal polynomial and the geometric multiplicity of the eigenvalue $a$. Verify that this information determines the Jordan normal form.  I found this question in a textbook that I'm using for a test I have tomorrow. I think that I need to use the method for finding the Jordan normal form of a matrix but I can't see how to apply it and I don't have much intuition about the answer...  I'm guessing that there are 5 possibilities since the minimal polynomial can be any factor of the characteristic, but I don't know how to prove this.  Some help would be great for my test tomorrow! Thanks Using OR comparisons with IF statements When using IF statements in Python, you have to do the following to make the "cascade" work correctly.  if job == "mechanic" or job == "tech":         print "awesome" elif job == "tool" or job == "rock":         print "dolt"   Is there a way to make Python accept multiple values when checking for "equals to"? For example,  if job == "mechanic" or "tech":     print "awesome" elif job == "tool" or "rock":     print "dolt" What is the name of the package for R? I tried aptitude search r, but (unsurprisingly), there are waaaay too many results to sift through. How to control object's path follow speed based on its position I am not a administrator and I would like to find the administrator password. I would not like to reset it however. Is there anyway to find and not reset the administrator password? net use command works in command prompt, but not in bat file How to show hidden folders in File Manager (Nautilus) on Ubuntu? How do you show a hidden folder (whose name starts with .) in File Manager a.k.a. Nautilus on Ubuntu?  I am somewhat new to Ubuntu and can't seem to find the "view" menu. Trying to remember the name of a grade-school book about an alien in a cereal box When I was a kid (Grade school, Elementary, can't remember the exact grade, but it was between 1992 and 1999) I read a book about a kid who found an alien in his cereal.  This alien informed him that he was there to defeat an evil threat to Earth, that took the form of the school's most popular student.  The alien came with a gun that did nothing, and the alien in the popular kid disguise had the power to make the kid's fingernails bleed by damaging his nerve endings.  In the end, it was revealed that the evil alien had a huge craving for, and vulnerability towards, pizza flakes, and was defeated by gorging himself on them and then exploding. Suppose $X$ is binomial $B(n,p)$. How can I find the probability that $X$ is even ?  I know $$P(X = k ) = \frac{ n!}{(n-k)!k!} p^k(1-p)^{n-k} $$  where $X=1,....,n$. Are they just asking to find $P(X = 2m )$ for some $m &gt; 0$ ? I have a very big file 4GB and when I try to read it my computer hangs. So I want to read it piece by piece and after processing each piece store the processed piece into another file and read next piece.  Is there any method to yield these pieces ?  I would love to have a lazy method. How to run find -exec? I'd like to find the files in the current directory that contain the text "chrome".  $ find . -exec grep chrome find: missing argument to `-exec'   What am I doing wrong? Suppose an entire function $f$ is real if and only if $z$ is real. Prove that $f$ has at most $1$ zero. Let $f$ be an entire function. Suppose $f(z)$ is real if and only if $z$ is real. Prove that $f$ has at most $1$ zero. How to prove? Totally I have no idea... Please give the solution in detail since I do not understand. Why teach linear algebra before abstract algebra? Is there a reason why most undergraduate curriculums put linear algebra before abstract algebra?  I'm asking this because personally it seems to be much easier to understand the architecture behind linear algebra as supposed to simply solving problems after a course in abstract algebra. I have Ubuntu on my laptop. Now I want install Windows 7 in a dual-boot. How can I do this? I can't lose my Ubuntu files, and I'm afraid that I might break . Go  for UEFI only! Suppose the terms of the sequence of real numbers $\{a_n\}$ satisfy $|a_{n+1} - a_n| \le 2^{-n}$ for all $n$. Prove that $\{a_n\}$ is Cauchy.   My Work  So by the definition of a Cauchy sequence, for all $\varepsilon &gt; 0$ $\exists N$ so that for $n,m \ge N$ we have $|a_m - a_n| \le \varepsilon$. However, questions like  make me understand that the $2^{-n}$ condition is necessary for this to be a true statement.   So I am wondering how to appeal to the Cauchy definition for this proof. Do I prove that every convergent sequence is therefore Cauchy, and then try to prove convergence? How can I log into a different Google account? It only shows one of my Google accounts. I want to log into a different one but I don't want them connected in any way. What do I do?