Putting external IP into a variable - grep operation failed
How to get my own IP address and save it to a variable in a shell script?
How to compare the strings using < (Greater than symbol) Below is my input file:  PA43410-2,1,3,/vobs/atlas-idc/src/utils/logger/IDCLogger/IDC.cpp,48,19:16:46.523.177, 2 PS Sensor Value = -5.501000 , Min = -5.583000 , Max = -5.319000 PA43410-2,1,3,/vobs/atlas-idc/src/utils/logger/IDCLogger/IDC.cpp,48,19:16:46.523.210, 3 PS Sensor Value = 15.996000 , Min = 15.814000 , Max = 16.078000 PA43410-2,1,3,/vobs/atlas-idc/src/utils/logger/IDCLogger/IDC.cpp,48,19:16:46.523.231, 4 PS Sensor Value = -16.505000 , Min = -16.587000 , Max = -16.323000 PA43410-2,1,3,/vobs/atlas-idc/src/utils/logger/IDCLogger/IDC.cpp,48,19:16:46.523.263, 5 PS Sensor Value = 6.509000 , Min = 6.327000 , Max = 6.591000 PA43410-2,1,3,/vobs/atlas-idc/src/utils/logger/IDCLogger/IDC.cpp,48,19:16:46.523.302, 6 PS Sensor Value = 4.002000 , Min = 3.820000 , Max = 4.084000 PA43410-2,1,3,/vobs/atlas-idc/src/utils/logger/IDCLogger/IDC.cpp,48,19:17:46.481.557, 1 PS Sensor Value = 6.199000 , Min = 6.017000 , Max = 6.281000 PA43410-2,1,3,/vobs/atlas-idc/src/utils/logger/IDCLogger/IDC.cpp,48,19:17:46.518.691, 2 PS Sensor Value = -5.503000 , Min = -5.585000 , Max = -5.321000 PA43410-2,1,3,/vobs/atlas-idc/src/utils/logger/IDCLogger/IDC.cpp,48,19:17:46.523.156, 3 PS Sensor Value = 15.996000 , Min = 15.814000 , Max = 16.078000 PA43410-2,1,3,/vobs/atlas-idc/src/utils/logger/IDCLogger/IDC.cpp,48,19:17:46.523.195, 4 PS Sensor Value = -16.505000 , Min = -16.587000 , Max = -16.323000 PA43410-2,1,3,/vobs/atlas-idc/src/utils/logger/IDCLogger/IDC.cpp,48,19:17:46.523.221, 5 PS Sensor Value = 6.509000 , Min = 6.327000 , Max = 6.591000 PA43410-2,1,3,/vobs/atlas-idc/src/utils/logger/IDCLogger/IDC.cpp,48,19:17:46.523.240, 6 PS Sensor Value = 4.002000 , Min = 3.820000 , Max = 4.084000 PA43410-2,1,3,/vobs/atlas-idc/src/utils/logger/IDCLogger/IDC.cpp,48,19:18:46.480.644, 1 PS Sensor Value = 6.199000 , Min = 6.017000 , Max = 6.281000 PA43410-2,1,3,/vobs/atlas-idc/src/utils/logger/IDCLogger/IDC.cpp,48,19:18:46.522.615, 2 PS Sensor Value = -5.501000 , Min = -5.583000 , Max = -5.319000 PA43410-2,1,3,/vobs/atlas-idc/src/utils/logger/IDCLogger/IDC.cpp,48,19:18:46.522.729, 3 PS Sensor Value = 15.996000 , Min = 15.814000 , Max = 16.078000 PA43410-2,1,3,/vobs/atlas-idc/src/utils/logger/IDCLogger/IDC.cpp,48,19:18:46.522.765, 4 PS Sensor Value = -16.505000 , Min = -16.587000 , Max = -16.323000 PA43410-2,1,3,/vobs/atlas-idc/src/utils/logger/IDCLogger/IDC.cpp,48,19:18:46.522.788, 5 PS Sensor Value = 6.509000 , Min = 6.327000 , Max = 6.591000 PA43410-2,1,3,/vobs/atlas-idc/src/utils/logger/IDCLogger/IDC.cpp,48,19:18:46.522.810, 6 PS Sensor Value = 4.002000 , Min = 3.820000 , Max = 4.084000   I need to compare the PS Sensor Value, Min and Max value. (Min greater than PS Sensor greater than Max)   I'm expecting the output like below and here I should have only the normal lines.  What is normal lines? :  If Min value greater than PS Sensor value &amp;&amp; PS Sensor value  is greater than Max value then the line is normal lines and that should removed.        Expected Output:                                                                                                                                    PA43410-2  PS Sensor Value = 6.509000 , Min = 6.327000 , Max = 6.591000 PA43410-2 PS Sensor Value = 6.199000 , Min = 6.017000 , Max = 6.281000  Eg:     If   Min &lt; PS sensor value &lt; Max,    // Don’t care the normal  lines.          Throw this line away.    Else           Pull this line to consolidated new file. //Only focus on abnormal lines. Case field mapping with custom object fields? which adjective can I use to describe my neighbor, who is always trying to keep eye on my personal matters like what am I bringing from market or what am I cooking etc?  Regards, I found a problem with an application on Ubuntu.   Questions :   How do I best report the issue?  What sort of information should I provide? I called my lender last week. I am close to owning 20% of my home and want to get rid of PMI. They said I can only do it by remortgaging my house. Is that true? With the mortgage rates increasing, I will definitely lose some money by remortgaging the house.  Also, I know that I can request the PMI charge to stop if I own 20% of the value of the home, or it will stop automatically once I own 22% of the value. Is it possible that the lender meant I can't do it with 20% but it will be done at 22% automatically without the need to remortgage the house? JPA and Hibernate - Criteria vs. JPQL or HQL What are the pros and cons of using  or ? The Criteria API is a nice object-oriented way to express queries in Hibernate, but sometimes Criteria Queries are more difficult to understand/build than HQL.   When do you use Criteria and when HQL? What do you prefer in which use cases? Or is it just a matter of taste? Can't execute a MySQL stored procedure from Java How to identify "deictic center" for distinguishing "come" & "go"? Read this paragraph from this    My question is:  How to identify "deictic center" for distinguishing "come" &amp; "go"?  Let say I am at home &amp; I say "I am going to the zoo this evening", so the "deictic center" in this case is my home &amp; I move away my "deictic center".  But let say my friend Tom &amp; I currently at my home &amp; Tom said "Are you Coming to the zoo to see the lion?" &amp; I said "Ok, I am coming to the zoo this evening". So, the "deictic center" in this case is "the zoo" &amp; we move towards the "deictic center" (ie the zoo).  It feels like it is very arbitrary.  Note: See this , it said the selection of "deictic center" could be due to sympathy &amp; politeness. If $f \in L_p \cap L_q$, $1 \leq p < r < q < \infty$ then $f \in L_r$. If $f \in L_p \cap L_q$ and $1 \leq p &lt; r &lt; q &lt; \infty$ then $f \in L_r$.   Proof: Let $E = \{ x \in X: \left\lvert f \right\rvert \leq 1 \}$. Then, $$\int \left\lvert f \right\rvert^r \mathrm{d}\mu = \int_E \left\lvert f \right\rvert^r \mathrm{d}\mu+\int_{E^C} \left\lvert f \right\rvert^r \mathrm{d}\mu \leq \int_E \left\lvert f \right\rvert^p \mathrm{d}\mu+\int_{E^C} \left\lvert f \right\rvert^q \mathrm{d}\mu$$ $$\leq \int \left\lvert f \right\rvert^p \mathrm{d}\mu+\int \left\lvert f \right\rvert^q \mathrm{d}\mu &lt; \infty.$$ Thus, $f \in L_r$.  I just want to make sure I am somehow not missing anything. Thanks Wasted screen space due to multiple horizontal bars at the top when an application is open in GNOME desktop Just moved from Unity to GNOME with the update to Ubuntu 17.10. There is a HUGE amount of wasted space at the top of the screen, when an application is open.  Evolution and Firefox both have four "bars" with 90% of each empty. Unity, to its credit was able to blend / mix these horizontal bars so there was only one / two.      Four is way too much. If this is GNOME I may carry on with Unity for the next six months.  Can anybody suggest a tweak/change/fix for this? Is it shell portable to run a command on the same line after variable assignment? Is there any standard that covers the portability of running a command after variable assignment on the same line?  APPLE="cider" echo hi   How portable is something like that? Where will it work and where won't it?   Also: my shell scripts start with #!/bin/sh if that makes any difference. $\sigma$-algebra vs. $\sigma$-field: is there any difference? The subject says it all: is there any difference between the two concepts of $\sigma$-algebra and $\sigma$-field? In probability theory, they seem to be used more or less interchangeably. If there is no difference, is there any historical reason why some people/schools use the term $\sigma$-algebra, while others use the term $\sigma-$field? Automatically switch gpu graphics driver when gaming I have installed Ubuntu GNOME 15.10. I installed the nvidia tested proprietary driver and then I restarted. Afterr that I selected as primary GPU the Intel driver for normal use. However, when I enter a steam game(Portal) the graphics is bad so In order to play normal I have to switch manually to the nvidia driver again and reboot again. After the game I have to manually select as primary driver the Intel one and reboot again. It is so boring. QUESTION: How to automatically switch gpu graphics driver when I enter a game or something that needs more GPU? Suppose that $f$ is holomorphic on $\mathbb C$ and that $\Re(f(z))\ge 0$ for all $z$. Show that $f$ is constant. [Hint: consider $e^{−f(z)}$.]   My thoughts: If $\Re(f(z))\ge 0 $ holds, then $e^{−f(z)}$ is a bounded holomorphic function (do I need to prove this or is it obvious?) So then by Liouville's Theorem $e^{−f(z)}$ is constant.   But then I'm not sure how to rigorously go from this $\exp(−f(z))$ back to $f(z)$.   Could anyone help me piece this together please?  Thanks I made an svg in Illustrator, but now I want to use it in a website/app but it's a huge size (around 10 MB) how can I decrease the size of it? My illustrator file is pretty big but that because I have some tracing elements underneath. The file also has a big artboard, but when I save should I delete my tracing elements, and decrease the artboard size? How do I get permissions to delete files on Windows 7? I updated my laptop's OS from Windows XP to Windows 7. There are some leftover files from Windows XP on the computer now. If I try deleting them I get the following error:     You need permission to perform this action.      You require permission from S-1-.... to make changes to this folder.   What's weird is that I am logged in with the only user account on this machine and I have administrator privileges. I tried turning UAC off, but I still can't delete the files.  How can I force removal of these files? Prove that in any GCD domain every irreducible element is prime JSON Parsing in Android Application of Complex Numbers I was just wondering how complex numbers can be applied in electrical engineering and why we use complex numbers over regular, real numbers for this application (e.g what capabilities does the complex number have that real numbers do not in electrical engineering)?  I have done some research concerning impedances and understand how they are written in complex form, however I am still confused why complex numbers are necessary in this field over regular numbers. Show that if $ab$ has finite order $n$, then $ba$ also has order $n$. - Fraleigh p. 47 6.46.