$!/bin/sh if grep "$1" /etc/passwd 2&gt;/dev/null               #Search username at beging of line1 then          echo "Pattern found - Job Over" else           echo "Pattern not found"  fi
Just looking for the difference between   2&gt;&amp;- 2&gt;/dev/null |&amp; &amp;&gt;/dev/null &gt;/dev/null 2&gt;&amp;1   and their portability with non-Bourne shells like tcsh, mksh, etc.
Commutative non Noetherian rings in which all maximal ideals are finitely generated In commutative rings we have the following  Theorem. $R$ is Noetherian if and only if each prime ideal of $R$ is finitely generated.  From this Theorem I am looking for commutative rings $R$ in which every maximal ideal is finitely generated but $R$ is non Noetherian.  Question: Is there a straightforward example of a commutative ring $R$ so that each maximal ideal is finitely generated, but $R$ is non Noetherian?  Thank You Analysis's output vs analysis output vs output of the analysis I think it would be nice to have a "friends list" on Stack Overflow. This would allow us to be able to follow the questions and answers that are posted by users that we want to watch/monitor.  I suggest it be implemented in the same fashion as DotNetKicks.com; where you can add someone to your "friends list" without them needing to approve you the way that other social networks do it. It should be completely open for us to add anyone to our "friends list" that we like. Let $X$ and $Y$ be topological spaces. A function $f: X \rightarrow Y$ is defined as continuous if for each open set $U \subset Y$, $f^{-1}(U)$ is open in $X$. This definition makes sense to me when $X$ and $Y$ are metric spaces- it is equivalent to the usual $\epsilon-\delta$ definition. But why is this a good definition when $X$ and $Y$ are not metric spaces?  How should we think about this definition intuitively? Is there a limit to a total number of months a holder of UK multiple entry visitor visa can spend in UK per calendar year? A relative of mine has received a multiple-entry UK visa for 2 years. Is there a particular limit on how many months in total per year she can stay in UK? The way I understand the current rule is that such visitors can enter UK as many times as they want as long as they do not stay for longer than 6 months per single visit. However, does this mean that if she stayed with us for 5 months and went back home for 1-2 months, she could come and stay for another 5 months? I heard that it is advisable to spend only 180 day per calendar year in UK and not more, but I could not find that rule in any official UK Home Office documents. Thanks in advance for any info about this. Beamer: \nonumber equivalent for slides? Is there an equivalent command to \nonumber when one doesn't want to include certain slides in the numbering? I would like to leave outline and title slides out of my numbering, and instead just number slides with actual content. Other workarounds would be nice to know about as well.  Edit: Since a MWE example was requested, here is one. Suppose I have a title page and two other slides. The code below gives a slide counter that goes up to 3, and the title slide is slide 1. I would prefer to have the title slide not be numbered, the counter go up to 2, and the the numbering start at the slide after the title. Here is some code.  \documentclass{beamer}  \mode&lt;presentation&gt;  {    \usetheme{Dresden}  }   \setbeamertemplate  {footline}{\quad\hfill\insertframenumber/\inserttotalframenumber\strut\quad}    \begin{document}  \begin{frame}  \titlepage \end{frame}  \begin{frame} Some actual content here \end{frame}  \begin{frame} Some more actual content here \end{frame}  \end{document} How do I suppress the "New release '12.10' available" message? When I ssh into my  box, I get this message:  Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-32-generic x86_64)   * Documentation:  https://help.ubuntu.com/  New release '12.10' available. Run 'do-release-upgrade' to upgrade to it.  Last login: &lt;redacted&gt; $   But I don't intend to upgrade to 12.10, because Mythbuntu recommends using LTS releases only.  How do I suppress the "New release '12.10' available" message?  I don't want to be notified until the next LTS release is available.  I've already gone to Update Manager > Settings > Updates and selected "Notify me of a new Ubuntu version: For long-term support versions", but that didn't get rid of this message. Why does a 95% Confidence Interval (CI) not imply a 95% chance of containing the mean? It seems that through various related questions here, there is consensus that the "95%" part of what we call a "95% confidence interval" refers to the fact that if we were to exactly replicate our sampling and CI-computation procedures  many times, 95% of thusly computed CIs would contain the population mean. It also seems to be the consensus that this definition does not permit one to conclude from a single 95%CI that there is a 95% chance that the mean falls somewhere within the CI. However, I don't understand how the former doesn't imply the latter insofar as, having imagined many CIs 95% of which contain the population mean, shouldn't our uncertainty (with regards to whether our actually-computed CI contains the population mean or not) force us to use the base-rate of the imagined cases (95%) as our estimate of the probability that our actual case contains the CI?   I've seen posts argue along the lines of "the actually-computed CI either contains the population mean or it doesn't, so its probability is either 1 or 0", but this seems to imply a strange definition of probability that is dependent on unknown states (i.e. a friend flips fair coin, hides the result, and I am disallowed from saying there is a 50% chance that it's heads).  Surely I'm wrong, but I don't see where my logic has gone awry... There several types of graphics files. In no particular order .jpeg .eps .pdf .png .tif .jif (and no doubt others). Some work with latex, dvips and some work with pdflatex. How am I supposed to know which?  Just to confuse matters, metapost produces .eps but I can use these with pdflatex as long as I put in a four line incantation.  Can anyone explain this? Calculating the integral $\int_0^\infty \frac{\cos x}{1+x^2}\, \mathrm{d}x$ without using complex analysis Suppose that we do not know anything about the complex analysis (numbers). In this case, how to calculate the following integral in closed form? $$\int_0^\infty\frac{\cos x}{1+x^2}\,\mathrm{d}x$$ node.js conflicts: /sbin/node vs /usr/bin/node I have two Ubuntu 12.10 machines: machine A is a VMWare VM and machine B is and old Acer laptop. On both machines, I installed node using apt-get. However machine A installs the main binary as /usr/bin/node and machine B as /usr/bin/nodejs. Here are some behaviors I observed:   Both machine returns /usr/bin/node in response to the which node command. However, there is no such file on machine B. Issuing the command node works for machine A, not B. On B, I have to use nodejs instead. On B, there is a binary called /sbin/node, A does not have it.   These behaviors causes inconsistency problem when developing on both machines. For now, I worked around by renaming the binaries on B as such:  sudo mv /sbin/node /sbin/node-sbin sudo ln -s /usr/bin/nodejs /usr/bin/node   Is there a way to really fix this, so that node will be installed as /usr/bin/node instead of /usr/bin/nodejs? Ball $X^*$ is weak-star metrizable iff X is separable in Conway's book. This is a Theorem in Conway's book     I don't understand in the third paragraph why there are open sets $\{U_n:n\geq1\}$ in $(ball X^*,wk^*)$ such that $0\in U_n$ and $\bigcap^{\infty}_{n=1}U_n=\{0\}$. By the definition of the relative weak-star topology on ball $X^*$, for each $n$, there exists a finite set $F_n$ contained in $X$ such that $$\{x^*\in\text{ball }X^*:|\langle x,x^*\rangle|&lt;1 \text{ for all }x\in F_n\}\subseteq U_n.$$  Can someone explain this for me？ Thank you so much!! How to remove deleted chatroom from favorite rooms? Does anyone know of a simple Image Editor, with functionality comparable to ,  for Ubuntu?  I've always found GIMP to be overkill and too complicated for what I want to do. How to open a new Terminal with shell prompt and running multiple commands in Command Line? I want to Open a new Terminal in from within terminal.  It should have Shell prompt as well as already run few commands.  How to do it ? How can one differentiate between Dr. (PhD) and Dr. (MD or DO)? 8 bits representing the number 7 look like this:  00000111   Three bits are set.     What are algorithms to determine the number of set bits in a 32-bit integer? Is there a difference between the original file and a hard link to it? I'd like to synchronise some configuration files via a file hoster like Dropbox. I could create a hard link in the software's configuration folder and let it point to my cloud storage directory.  When having done that, is there a difference between those two files? I read somewhere that both files are attributes of the file in the master file table and that there would be no difference at all.  On the other hand, on Windows, directory junctions via mklink can be found using dir /AL /S, so they somehow differ from real directories.  Is that correct? The reply buttons in chat shouldn't reposition themselves on pinged messages Compute the integral $\int_{A} x^m y^n z^p (1-x-y-z)^q dx dy dz$ Let $A =$ {$(x,y,z) \in \mathbb{R}^3 |$  $x,y,z \geq 0$ and $x+y+z \leq 1$}.   Compute the integral $$\int_{A} x^m y^n z^p (1-x-y-z)^q dx dy dz$$  using new variables $u = x+y+z$, $v=\frac{y+z}{x+y+z}$, $w=\frac{z}{y+z}$.  Also, although it was not stated in the problem, I'm assuming that $m,n,p,q \in \mathbb{Z}$.   Since $f(x,y,z)=(x+y+z, \frac{y+z}{x+y+z}, \frac{z}{y+z}) = (u,v,w)$, $f^{-1}(u,v,w) = (u(1-v), uv(1-w), uvw)$  Thus J $= \begin{vmatrix} 1-v &amp; -u &amp; 0\\  v(1-w) &amp; u(1-w) &amp; -uv\\  vw &amp; uw &amp; uv\\ \end{vmatrix} = u^2v$  Skipping the part where I find the new limits of integration, and skipping some algebraic simplification we have:  $$\int_{A} x^m y^n z^p (1-x-y-z)^q dx dy dz$$   $$= \int_{0}^1 \int_{0}^1 \int_{0}^1 u^{m+n+p+2}(1-u)^q v^{n+p+1}(1-v)^mw^p(1-w)^n du dv dw$$  However, I have no  idea where to go from here. Any help would be much appreciated.