I have to write unix script for count number of occurrences of G char in the sequence: "GTCGTAATGCGGATCGGAATCGA"  and i want output as "number of nucleotide G is 8"
I have a SNP table looks like this  A N N N N N N N N N N N N C N N N C N N N N N N N N N N N N N N N N N N N C N N N C N N N N N N N N N N N N N N N N N N C C N N N N N N N N N N C C N N N C C N N N N N N N N N N N N N N N N N   I want to count total number of N in each row? any idea how to do that
I just received a PhD invitation letter from a German University which mentions that my remuneration will be 2/3 of full TV-L 13 position. I do not know what a TV-L 13 position is (Google is of no help here), and didn't want to be rude, so I am asking here first. Is this a common position or specific to Germany? If anyone knows, currently how much remuneration corresponds to a TV-L position? "To your left" versus "on your left" There is a security camera on the building to your left      There is a security camera on the building on your left   Is there any real difference in meaning here? Which sounds more natural to native speakers? Is it possible to simulate key press events programmatically? Is it possible to simulate key press events programmatically in JavaScript? Single Variable Calculus Reference Recommendations This question is a  of the common question asking for calculus references. It is here to  away the repetition, and give a canonical resource for calculus references.      I'm looking for a resources to learn single-variable calculus. Is there a workaround to make CSS classes with names that start with numbers valid? I wanted to upgrade to 14.04.2 point release from 14.04.  What I did was:  sudo apt-get update &amp;&amp; sudo apt-get upgrade &amp;&amp;  sudo apt-get dist-upgrade -y   Then I wanted to upgrade to 3.16 kernel, since it wasn't done with the the above command, so what I did was:  sudo apt-get install linux-generic-lts-utopic xserver-xorg-lts-utopic libegl1-mesa-drivers-lts-utopic xserver-xorg-video-all-lts-utopic xserver-xorg-input-all-lts-utopic sudo apt-get install linux-signed-generic-lts-utopic   Now when I do:   uname -a I get   Linux Y500 3.16.0-33-generic #44~14.04.1-Ubuntu SMP Fri Mar 13 10:33:29 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux  cat /etc/os-release | grep VERSION= I get  VERSION="14.04.2 LTS, Trusty Tahr"   And when I do lsb_release -a I get  Distributor ID: Ubuntu Description:    Ubuntu 14.04.2 LTS Release:    14.04 Codename:   trusty   I know that uname -a and lsb_release -a both refer to different info, but why does  cat /etc/os-release | grep VERSION= show different version? Is there a good tool/program that allows me to clone a system drive to another, smaller hard drive?  I've bought a new 64GB SSD drive and would like to move my current Windows 7 Professional 64-bit installation to that new drive. My current drive is a 200GB SATA drive with one partition only. Of course there's enough free space to shrink my current partition to less than 64GB. What would you see if you have 2 huge mirrors (you cant look over it or next to it)  You place them with the reflecting side to each other and you look in the mirror from behind one mirror (one way mirror = 1 side glass 1 side mirror, like in a movie when cops are questioning a suspect.)  The mirror would reflect each other endless.  The example could be preformed with a see trough mirror (1 side mirror other side glass) but I don't have one, also I don't have huge mirrors.    Would it make a diffrence if you place a light source and if you dont have a light source?  My guess is that you would always see black because there is nothing to mirror.  Edit important:   There is nothing in the room to reflect on, so it only reflects the mirror, thats what i ment. What is the term for taking it out on someone even though you will be harmed by this too? When you are so mad at someone that you make a bad decision, even though you will be harmed by it as well, in order to harm that person; is there a good term for this?   For example burning $100 because he owns $20 of it. I need to label the four corners of a dataframe as shown in the image. Can this be done with dynamic text scripts? How to find distance from the latitude and longitude of two locations? The difference between an analogy and a metaphor? Many a time I've asked what the difference is between an analogy and a metaphor. I've asked it to my teacher, on internet sites, to my parents, so on and so forth. I got a different answer every time, and I never fully grasped what the difference is, so what is the difference? How do you make an image emission without washing out the image? Is it ok to say 'sorry' where you otherwise would use 'excuse me'?  Example: "Sorry, but could you show me the way to the next train station?" Could a constant function be considered increasing? Given the definition of an increasing function as a function $f:E\to\mathbb{R}$, where $E$ is nonempty such that $x_1,x_2\in E$ and $x_1&lt;x_2$ imply $f(x_1)\leq f(x_2)$, then couldn't, for example, $f(x)=-1$ considered increasing? Since the inequality is not a strict inequality. I would have read this about 20-25 years ago.  I believe the subject was an alien individual, but it could have been a non-standard human instead.  The hook of the story was that the subject lacked an organ like the  that allows the halves of the brain to communicate efficiently, allowing the illusion of a single consciousness.  The subject is conscious, and has thoughts, but is subject to hearing commands like "Wash your hands!" "Fetch water!" within its head.  I recall the subject (and others like the subject) believing that the voices are their gods talking to them.  To the reader it becomes clear that this is a separate part of the subject's own mind that is responsible for long-term planning and simply can't communicate with the rest of the mind in the way a "normal" human is accustomed to. [[ 0*10%300 ]] works on AIX 6.1 but not on AIX 7.1 (ksh) Is tipping mandatory at Restaurants and Bars in Germany? Hamiltonian Cycle Problem At the moment I'm trying to prove the statement:     $K_n$ is an edge disjoint union of Hamiltonian cycles when $n$ is odd.   ($K_n$ is the complete graph with $n$ vertices)  So far, I think I've come up with a proof. We know the total number of edges in $K_n$ is $n(n-1)/2$ (or $n \choose 2$) and we can split our graph into individual Hamiltonian cycles of degree 2.   We also know that for n vertices all having degree 2, there must consequently be $n$ edges. Thus we write $n(n-1)/2 = n + n + ... n$ (here I'm just splitting $K_n$'s edges into some number of distinct Hamiltonian paths) and the deduction that $n$ must be odd follows easily.  However, the assumption I made - that we can always split $K_n$ into Hamiltonian paths of degree 2 if $K_n$ can be written as a disjoint union described above - I'm having trouble proving. I've only relied on trying different values for $n$ trials and it hasn't faltered yet. So, I'm asking:     If it is true, how do you prove that if $K_n$ can be split into distinct Hamiltonian cycles, it can be split in such a way that each Hamiltonian cycle is of degree 2? How do I run a 'sudo' command inside a script? To do a patch manually I must type this command   sudo ./playback_delete_data_patch.sh 09_delete_old_data_p.sql     There is a space just before the 09:   sudo ./playback_delete_data_patch.sh [space] 09_delete_old_data_p.sql   How can I run this inside a script?  There are also several other commands but this one is giving trouble.