I have a requirement to perform specific set of tasks based on server , So I want to have the condition(s) defined based on server. Here is the script I came up with and I have read multiple blogs and couldn`t find any mistake from my script. Can you guide on what I am overlooking here ?  #!/bin/bash SERVER_NAME=`hostname -s` hostname -s DBServer=(servr1 servr2 servr3 servr4) #AppServer=[hqidlfdiwa01 , hqiqlfdiwa01] echo "Values of DBServer seeing is ${DBServer[*]}" Values of DBServer seeing is servr1 servr2 servr3 servr4 for i in ${DBServer[*]} do   echo "current value in I is $i"   echo "The server name found is $SERVER_NAME"   if [$SERVER_NAME == $i]   then     echo "I am on one of the servers and it is $i"   fi done   Output I see on server is   current value in I is servr1 The server name found is servr1 -bash: [servr1: command not found current value in I is servr2 The server name found is servr1 -bash: [servr1: command not found current value in I is servr3 The server name found is servr1 -bash: [servr1: command not found current value in I is servr4 The server name found is servr1 -bash: [servr1: command not found
Can someone tell me what is wrong with this loop?    The error that I have is on the line 107 (first line of the loop). It says:      [V2016057174800: command not found.    I am trying to associate two the same filename from two different documents (if that makes sense).
How to I see the number of sessions in the Google Analytics aquisition overview main graph? Under Acquisition --> Overview, a graph appears around middle of the screen titled "sessions".  It is actually showing the total number of users over a particular time period, I'd like it to show the number of sessions and not users on the blue graph.     How do I change it? Windows 7 File Explorer search not working How does gravity work on Serenity? When the good ship Serenity is traveling in deep space, the crew experiences what looks like an Earth-normal (or Earth That Was-normal) level of gravity. Is it ever explained how the ship is able to generate artificial gravity? The ship doesn't spin, so  is out.  is a possibility, but I think the gravity in the ship pulls in a direction that is perpendicular to the direction the ship is usually traveling in, not opposite, like this method would require.   So: how does she pull it off?   Extra credit: how does she pull it off in the episode ? Serenity's engine is totally dead, to the extent where not even life support systems are online. Yet Mal still has to valiantly haul himself around on the floor to replace the compression coil, so whatever creates the artificial gravity on Serenity is clearly still going. How? Lightning:input type="date": how to change the date fomat - Summer'18 Any javascript event occurring when user clicks Stop load button? Another layman blackhole question, pulling one end of a string out from behind the event horizon No long explanation is needed,  What would happen if I were to allow one end of a rope to fall past the event horizon of a black hole while I held the other end?  Would I be able to pull it out? Would the rope feel extremely (infinitely?) heavy? Why did the Resistance automatically assume the use of this tech in The Last Jedi? Is volunteer work allowed in the US while visiting under the VWP or a B1/B2 visa? I am going to Santa Monica for 4 weeks to polish my English in July and would like to volunteer at the Planetary Society located in Pasadena.  I am a Swiss citizen and have a biometric passport. However, I don't have any special visa, as there is no visa needed for the school I am attending and using the Visa Waiver Program, I am allowed to stay up to 90 days in the US.  Am I allowed to do volunteer work during my stay? Direction arrows on a circle I would like to plot circle (or another curve) with positive direction (and show it wit arrows).  This plots the circle  \documentclass{article} \usepackage{tikz} \RequirePackage{pgfplots} \usetikzlibrary{shadows} \usetikzlibrary{shapes} \usetikzlibrary{decorations} \usepackage{verbatim} \usepackage[active,tightpage]{preview} \PreviewEnvironment{tikzpicture} \setlength\PreviewBorder{5pt} \begin{document} \begin{tikzpicture}     \begin{axis}[             xmin=-1.5,xmax=2.5,ymin=-1.5,ymax=1.5,             axis lines=center,             ticks=none,             unit vector ratio*=1 1 1,            ]                   \addplot [very thick, smooth, domain=(0:2*pi)] ({1.+cos(deg(x))},{sin(deg(x))});        \addplot[only marks,mark=*] coordinates{(1,0)};         \end{axis} \end{tikzpicture} \end{document}   And I want to add arrows like that    Would you advise me how to add such arrows? Why is 'that' sometimes optional before dependent clauses? How to test for an hold item name in Minecraft? I'm trying to make a command block that spawns an item in front of you if you are holding an item with a specific name. I've got these two working scripts;  /testfor @p[r=10] {Inventory:[{tag:{display:{Name:"Item Name"}}}]}  /testfor @p[r=10] {SelectedItemSlot:0,Inventory:[{Slot:0b,­id:"minecraft:diamond_sword"}]­}   but I can't get them together. The block should only look for an item in the active slot. How to make IntelliJ IDEA recognise code created by macros? Computation of a limit involving factorial $\lim_{n \to \infty} \sqrt[n+1] {(n+1)!} - \sqrt[n] {(n)!} = \frac{1}{e}$ django manytomanyfield .add() method Identify a book with a social engineering theme I originally read this book in the mid- to late '70s.   The premise was a bureaucracy whose job it was to manipulate events in human history by making the smallest possible change that would effect the desired outcome. Not time cops in the sense of going after law breakers.  The intent was to maintain a policy of non-interference as much as possible but when interference was warranted then to make the least possible change and to do so invisibly.  For example, they might take someone's keys off the dresser and put them just out of sight underneath the dresser where they plausibly might have fallen.  The subject would never know of the manipulation but would then be delayed getting out of the house and the ripples grew from there to avert a war or otherwise affect events on a large scale.  After reading that, whenever I would lose something - especially in an improbable way such as dropping a screw at my feet and then finding it on the other side of the room half an hour later - I would take some consolation in the thought that I had just averted some global catastrophe.  I was pretty scatterbrained as a kid (we call that ADHD nowadays) so I experienced this a lot.  Given that I've spent so much time pondering the ideas from the book, I'd love to re-read it. A method to count occurrences in a list Two definitions of $\limsup$ Here are two equivalent definitions of $\limsup_{n\rightarrow\infty} a_n$:   Let $u_n=\sup\{a_n, a_{n+1}, a_{n+2},\ldots\}$. Then $$\limsup_{n\rightarrow\infty} a_n = \lim_{n\rightarrow\infty} u_n =    \lim_{n\rightarrow\infty}\left(\sup\{a_n,a_{n+1},\ldots\}\right)$$ Let $E$ be the set of all subsequential limits of $\{a_n\}$. Then $$\limsup_{n\rightarrow\infty} a_n = \sup E$$   I'm curious as to which one people usually learn first, or which one people find more intuitive. Baby Rudin only has the second definition, but doesn't mention the first as far as I know.  As far as intuition, I think of the second definition as "the biggest limit point." I'm not sure how to think of the first definition though. I can see that $u_n \ge u_{n+1}$ for all $n$, but I'm not sure how to interpret the limit of those $u_n$ conceptually.  Are there any other ways to conceptualize $\limsup$? Show that $A_n=\sum\limits_{k=1}^n \sin k $ is bounded? I use Cygwin on my laptop (DOS). I have a collection of scripts from my colleagues, and my own. I am not an IT person, not knowledgeable in Unix. I am following my colleagues' syntax and able to manage a few simple things. The scripts worked well on my old laptop. I just changed laptop and installed Cygwin. When I run my scripts, they do not work. Here is one example of the error message I get: line 1: $':\r': command not found line 5: syntax error near unexpected token `$'\r'' line 5: `fi  Here are the top 5 lines of my script : iter=1 if [ -f iter.txt ]    then rm ./iter.txt  fi    Can someone please explain how I can get around this problem? It's my understanding that the phrase "Winter is Coming" is the motto of the Stark house, when the story first reaches the wall it's implied that the winter is not a periodic season like it is in our world.  Does the winter refer to a particularly severe season or does a winter only occur every few years?