admin@mac:/app/$ fetch=$(zsh -c 'zmodload zsh/datetime; strftime &quot;%b %d %R&quot; $((EPOCHSECONDS - 5*60))')  admin@mac:/app/$ echo $fetch Nov 21 08:22 admin@mac:/app/$ sed -n '/$fetch/,$p' test.log  admin@mac:/app/$(Not showing result)  My test.log input file below, Mon Nov 21 08:22 MYT 2020,Test 1  Mon Nov 21 08:22 MYT 2020,Test 2  Mon Nov 21 08:22 MYT 2020,Test 3
I want to do:  cat update_via_sed.sh | sed 's/old_name/new_name/' &gt; new_update_via_sed.sh   in my program.  But I want to use variables, e.g.  old_run='old_name_952' new_run='old_name_953'   I have tried using them but the substitution doesn't happen (no error). I have tried:  cat update_via_sed.sh | sed 's/old_run/new_run/' cat update_via_sed.sh | sed 's/$old_run/$new_run/' cat update_via_sed.sh | sed 's/${old_run}/${new_run}/'
Is there a simple and clear way to explain the difference between past simple and present perfect? I read (or do I say "have read"?) many rules for when to use the present perfect. I found them complex and hard to understand (or do I say "have found"?). I am finding it hard to apply these rules in real sentences.  Is there a simple and clear way to explain the difference between past simple and present perfect? If there is a simple explanation, please tell it! If there is no simple explanation, please tell why it is so complicated. Maybe if I knew why there is no simple explanation, that would help me understand what work I need to do in order to learn the difference. How to set file input value when dropping file on page? What's the derivative of: $ \sqrt{x+\sqrt{{x}+\sqrt{x+\cdots}}}$? let $ y=\displaystyle \sqrt{x+\sqrt{{x}+\sqrt{x+\cdots}}}$, i'm really interesting to know how do I find :  $\displaystyle \frac{dy}{dx}$ ?.  Note: I have used the definition of derivative of the square root function but i don't succed .  Thank you for any help Mysterious! Beamer itemize has no bullets after adding a few packages this is my first time using beamer.  I copied a template from the sharelatex page on Beamer  Which works, and \begin{itemize} shows bullets     But after adding a few more packages that I need, all the bullets are gone!    What is going on and how can I fix this?  \documentclass{beamer}  \usepackage[utf8]{inputenc}    \usepackage{amsmath}  \usepackage{amsthm}     %Theorem Environment  \usepackage{amssymb}  \usepackage{multirow}  \usepackage{cancel}  \usepackage{amsfonts}  \usepackage{graphicx}  \usepackage{subfigure}  \usepackage{upgreek}     \usepackage{mathtools}  \usepackage{thmtools}  \usepackage{enumitem}       %Information to be included in the title page: \title{Sample title} \author{Anonymous} \institute{ShareLaTeX} \date{2014}  \begin{document}    \frame{\titlepage}    \begin{frame}  \frametitle{Sample frame title}  \begin{itemize} \item  This is a text in first frame.  \item This is a text in first frame. \item This is a text in first frame.  \end{itemize}  \end{frame}  \end{document} A word for "every two days" Independent samples t-test with unequal sample sizes I have two independent groups: from one I have drawn a sample of size less than 30 due to its small population, while the second group has sample size 100.  Is it appropriate to use an independent samples t-test in this case? Let $X$ be a set and consider the collection $\mathcal{A}(X)$ of countable or cocountable subsets of $X$, that is, $E \in \mathcal{A}(X)$ if $E$ is countable or $X-E$ is countable. If $X$ is countable, then $\mathcal{A}(X)$ coincides with the power set $\mathcal{P}(X)$ of $X$. Now suppose that $X$ is uncountable. Assuming the axiom of choice, we can conclude that $\mathcal{A}(X) \ne \mathcal{P}(X)$, since $|X| = |X| + |X|$. So the question is:     Can we prove in ZF that $\mathcal{A}(X) \ne \mathcal{P}(X)$ for every uncountable set $X$?   I'm assuming that a set $X$ is uncountable if there is no injective function $f : X \rightarrow \mathbb{N}$. Applied modifiers are not visible Question  Let $X_n\geq 0$ be independent for $n\geq 1$. The following are equivalent.  $\sum_{n=1}^\infty X_n&lt;\infty$ a.s. $\sum_{n=1}^\infty[P(X_n&gt;1)+E(X_nI(X_n\leq 1)]&lt;\infty$ $\sum_{n=1}^\infty E(X_n/(1+X_n))&lt;\infty$   My attempt I was able to prove $(1)$ implies $(2)$ and $(2)$ implies $(3)$ but not $(3)$ implies $(1)$. For $(1)$ implies $(2)$, observe that by Borel-Cantelli $\sum_{n=1}^\infty P(X_n&gt;1)&lt;\infty$, else $X_n&gt;1$ infinitely often w.p.1 so that $(1)$ is violated. To see that $\sum_{n=1}^\infty E(X_nI(X_n\leq 1)]&lt;\infty$, apply Kolmogorov three-series theorem (I think). For $(2)$ implies $(3)$ we can write that $$ \begin{align} \frac{X_n}{1+X_n}&amp; =\frac{X_n}{1+X_n}I(X_n\leq 1)+\frac{X_n}{1+X_n}I(X_n&gt;1)\\ &amp;\leq X_nI(X_n\leq 1)+ I(X_n&gt;1). \end{align} $$ Now take the expectation of both sides and sum on $n$ using $(2)$ to conclude $(3)$. For the last implication $(3)$ implies $(1)$, I tried to use Kolmogorov three series theorem. To this end put $Y_n=X_nI(X_n\leq 1)$. First note that $\sum_{n=1}^\infty P(X_n&gt;1)&lt;\infty$ since $$ P(X_n&gt;1)\leq P\left(\frac{X_n}{1+X_n}&gt;\frac{1}{2}\right)\leq 2E\frac{X_n}{1+X_n} $$ by Markov's inequality. But I am unable to show that $\sum EY_n&lt;\infty$ and $\sum\text{Var}(Y_n)&lt;\infty$. Any help is appreciated. I have start point and end point of a polyline. How can I get a point on that polyline from end points specified by the given distance.    How can I get this by using arcpy provided that this script should work on ArcView without importing any modules (). I'm trying not to hard code values.  Related Question: I have to give low and high bounds for the following:  $$ \sum_{n=1}^\infty \frac{1}{2^n - 3^n } $$  How do I determine an upper bound? How can I show this sum exists?  edit: removed erroneous conclusion. Why this :$\sum\limits_{n=1}^\infty\frac1{n\sin n}$ is not harmonic series and is convergent? I'm confused how this series :$$\displaystyle \sum_{n=1}^\infty\frac1{n\sin n}$$ is a convergent series as wolfram show  and it's not harmonic series in the same time .  My question here is:  Why this :$$\displaystyle \sum_{n=1}^\infty\frac1{n\sin n}$$ is not harmonic series and is convergent ? Can I determine if an argument is string literal? I'm calculating the covariance of a distribution in parallel and I need to combine the distributed results into on singular Gaussian. How do I combine the two?  Linearly interpolating between the two almost works, if they are similarly distributed and sized.   provides a forumla at the bottom for combination but it doesn't seem right; two identically distributed distributions should have the same covariance, but the formula at the bottom of the page doubles the covariance.  Is there a way to combine two matrices? How TDD-oriented is the SE team? Stack Exchange is my role-model for application development.  I've tried to learn as much as possible from the blog and podcasts, from thought process to design, architecture, convention, etc etc.  I'm just about to wrap my head around TDD and am curious about how the SE team approaches it.  Is there a methodology that all team members follow, or is it more developer-driven testing where you pick complex bits to unit test as needed, or is it more about catch-all integration testing once a piece of functionality is done, or... ?  Any input would be fantastic. Normally, LaTeX will only create references for the BibTeX entries cited in the text. Is there a way of extracting these entries into a different .bib file automatically? For example if I have a .bib file with two entries, and only one is cited in a particular text, I need a way of creating a new .bib file with just that reference. I've found strange behavior when closing this  - I definitely see that there are 3 closing votes and 2 of them are at "Off-topic" section:   -but there are no explanations on section itself:   -while, normally, it's expected that it will appear. In custom comments section there are also no closing-votes displayed.   Perhaps it's just my browser (which is FF 26 x64 under Win) - so marking this as a "possible bug". Thank you for your attention. So I noticed that many cards with tap-effects ship with a clause specifying that they can only be used on untapped permanents, such as  and .  So here's my question:   Doesn't that imply that, given the right situation, one can legally tap an already tapped permanent?   I'll give an example of the kinda scenarios this is relevant for: Can  activate her first ability when no untapped cards are around? Or, thinking untap-effects, could I bounce a forest with  even when there isn't a tapped creature available?  Notice that, unlike the previous batch of examples, the wording on these lacks the clause restricting their use to un/tapped permanents - does that mean that they aren't?  Any kind of clarification would be greatly appreciated here. If I design a PC for use as an NPC, how much XP should he give when killed? How do I disable Aero Shake in Windows 7? I'm always accidentally minimizing most of my windows. This is really annoying. How do I disable Aero Shake?