I write below shell script to check whether given character is in uppercase or lowercase..  read d case $d in [a-z]) echo "Character is in Lowercase";; [A-Z]) echo "Character is in Uppercase";; esac   But when I enter any case in Uppercase it displays the output "charecter is in Lowercase" I just want to create simple script with basic programming. Is there any solution??
In all shells I am aware of, rm [A-Z]* removes all files that start with an uppercase letter, but with bash this removes all files that start with a letter.  As this problem exists on Linux and Solaris with bash-3 and bash-4, it cannot be a bug caused by a buggy pattern matcher in libc or a miss-configured locale definition.  Is this strange and risky behavior intended or is this just a bug that exists unfixed since many years?
Using adjustbox along with table footnote Who are the Steam Mascots? So with the Steam Summer Sale in full swing, I've finally taken notice of the Steam Mascots.  Judging by the latest background, the black one, at least, has a name: Cyl.  Do the other two have names as well? Are there only these three?   What's their story? How to delete a non-empty directory in Terminal? How to prevent freehub body damage? I feel like this is poor design. I have two wheelsets that are less than a year old which have damaged freehub bodys due to cogs digging in to the splines on the freehub. It's so bad that I can't remove the cassette spacer without filing down the splines. I had to use  pliers and chain whip to remove the cogs that were embedded in the freehub when trying to remove the cassette.  Most of the damage is on the center of the cassette as the largest 3 cogs are held together by carrier. I'm using a shimano 105 cassette and  Novatec disc hub and Velocity ATB convertible disc hubs (which were somewhat damaged in the same fashion, but not as bad as the novatec).  I'm using this bike for cyclocross, offroad exploring, light singletrack use, Rail trails and some road riding.    How can I prevent this damage to the freehub from happening? Android app should send edits to edit queue if necessary rather than rejecting them I edited a question, on Stack overflow and when submitting preview, got red bar telling me my account isn't allowed to make suggested edits.  On the Sandbox android question it works fine, but that is editing an answer to my question.   The message I receive is:     Account is not allowed to suggest edits   Are the rules for suggested edits different for Android app? For an architectural visualization, I would like to use MakeHuman models, but:   Only get them to render white with a black outline (on reflection surface too, if possible). Interact with light like normal human bodies in the scene (cast shadows, etc).   I can do the outline in freestyle, but any in-Cycles solution would be appreciated (OSL?) How can I give a user one password for normal usage when logging in, and another password for system administration and sudo access? I want one user to have two passwords. How to get ASCII value of string in C# I want to get the ASCII value of characters in a string in C#.  If my string has the value "9quali52ty3", I want an array with the ASCII values of each of the 11 characters.  How can I get ASCII values in C#? We all know that $\sqrt[3]{3}\not\in \mathbb{Q}({\sqrt[3]{2}})$ intuitively. We even know that $\sqrt[3]{p}\not\in \mathbb{Q}(\sqrt[3]{q})$ for two distinct primes $p, q$. However, I don't know how to prove these things rigorously. In case of $\sqrt{p}\not\in \mathbb{Q}(\sqrt{q})$, we can just set assume $\sqrt{p}=a+b\sqrt{q}$ for some $a, b\in\mathbb{Q}$ and deduce a contradiction. However, in cubic case, expansion of $(a+b\sqrt[3]{2}+c\sqrt[3]{4})^{3}$ is very complicated and even I expand this I couldn't get any contradiction by this.  To be specific, it gives us 3 diophantine equations  $$a^{3}+2b^{3}+4c^{3}+12abc=3$$ $$a^{2}b+2b^{2}c+2c^{2}a=0$$ $$ab^{2}+2bc^{2}+ca^{2}=0$$  and I don't know how to check solvability of this kind of diophantine equations (over $\mathbb{Q}$). Even if there exists a way to check solvability, I cannot convince that it can be used to prove $\sqrt[3]{p}\not\in \mathbb{Q}(\sqrt[3]{q})$.   So I tried to use Galois theory, but actually I don't know where to go. I assumed $\mathbb{Q}(\sqrt[3]{3})=\mathbb{Q}(\sqrt[3]{2})$ and take a Galois closure, i.e. $K=\mathbb{Q}(\sqrt[3]{3}, w)=\mathbb{Q}(\sqrt[3]{2}, w)$ where $w^{3}=1$ then tried to use field norm maps. We can check that $\beta=\sqrt[3]{3}\cdot\sigma(\sqrt[3]{3})\cdot\sigma^{2}(\sqrt[3]{3})\in \mathbb{Q}$ when $\sigma\in Gal(K/\mathbb{Q}), \sigma(\sqrt[3]{2})=\sqrt[3]{2}, \sigma(w)=w^{2}$. But I cannot get any information from this.   Edit : It would be great if there is a simple algorithm to check whether $\alpha\in K$ or not for a given algebraic number $\alpha$ and a number field $K$. What program can I use to decompile a class file? Will I actually get Java code, or is it just JVM assembly code?  On Java performance questions on this site I often see responses from people who have "decompiled" the Java class file to see how the compiler optimizes certain things. How to increase JAVA Heap Size? Why is my text pixelated? Within my game I have some cubes with text which render fine. In addition to the cubes I want to display some static text, e.g. the current score. The score text has the camera as parent and a copy rotation constraint on the camera. While this concept works fine in principle, the score text is displayed very pixelated. I already increased the font size to 50 and made the text smaller by scaling it down, but it still doesn't show nicely. The score text is about 11 Blender units away from the camera. If I move the score text further away, it displays better, but then the text interferes (collides) with the cubes. What could I do to improve the quality of this text? Download . Open the SSCCE in Blender 2.70. Hover your mouse over the 3D viewport. Press P to start game engine. I'm new to Blender and am having a few hitches.  Each time I use box select on a group of vertices it extends the selection from what was previously selected.  I can avoid this by hitting A to deselect all before using Box Select but I was hoping there was a way to have this happen by default.  Isn't it the desired workflow to select groups of objects and move them independently and only extend the select with Shift?  I must be doing it wrong. closed form for $\binom{n}{0}+\binom{n}{3}+\binom{n}{6}+...+\binom{n}{n}$ How can I remove snaps without losing GUI? I want to know how to check how many snaps programs/apps I'm running. Also, how to replace them (if possible) without losing GUI? Is there a rule of thumb for objective questions asked out of curiosity? Isaac Moses, the patriarch of Mi Yodeya, :  [...] the general Stack Exchange directive, expressed in the uneditable part of that section of the About page, to &quot;Focus on questions about an actual problem you have faced. Include details about what you have tried and exactly what you are trying to do.&quot; In fact, while this directive is perfect for the behemoth programming site that Stack Exchange grew out of, it doesn't fit very well for any of the more intellectually-oriented, rather than practically-oriented sites. [...]  This is something that's bugged me for a while, and ended up prompting a discussion between Anna, Aarthi and me. The gist of it: is there any simple test that can be used to identify answerable questions asked in good faith when the &quot;problem to be solved&quot; is... simple curiosity? Obviously, this is something that sites like  and  have had to contend with for some time, but now and then such questions pop up even on sites where folks are generally trying to solve real problems. While a potentially interesting thought experiment, . Strictly-speaking, problems like that fail the  test. And yet, I would keep that question simply because I learned something useful from the answers − not necessarily something I would ever apply to socks mind you, but certainly something I might apply to similar problems. I don't believe the question was asked in bad faith or for mindless social fun; yet, I have a bit of trouble stretching the definition of &quot;based on actual problems&quot; to contain it. Obviously, the fact that we're hosting a growing number of sites dedicated mostly or entirely to intellectual curiosity makes this something of a rhetorical question. The &quot;actual problems&quot; part of the FAQ was added specifically to draw a line between good and bad  − heading off  and their ilk. But it's a pretty damn good litmus test, and if it's ok to ignore it for some questions − or particularly for  − then what should stand in its place? My refrigerator line is 20 amp with 12 gauge wire. Can I tap into that with 14/2 wire, and run a light switch and 1 LED light? I don't have a minecraft folder. I've looked through forums and videos, followed all the steps. I just don't have one. I have windows 7, and I have "view hidden files" turned on. I have look in the roaming folder of my app data folder, with hidden files turned on. I want to find my folder so I can install a mod, could someone please tell me why my folder isn't showing up? prints out a lot of very detailed protocol statistics like number of TCP reset messages received or number of ICMP "echo request" messages sent or number of packets dropped because of a missing route.  When in Linux netstat is considered deprecated at nowadays, then is there an alternative?  Statistics provided by ss -s are superficial compared to the ones provided by netstat. Empty intersection and empty union If $A_\alpha$ are subsets of a set $S$ then   $\bigcup_{\alpha \in I}A_\alpha$ = "all $x \in S$ so that $x$ is in at least one $A_\alpha$"  $\bigcap_{\alpha \in I} A_\alpha$ = "all $x \in S$ so that $x$ is in all $A_\alpha$"  It is the convention that $\bigcup_{\alpha \in \emptyset}A_\alpha = \emptyset$ and $\bigcap_{\alpha \in \emptyset} A_\alpha = S$.   But if $x$ is in $\bigcap_{\alpha \in \emptyset} A_\alpha = S$ then $x$ is in all $A_\alpha$ with $\alpha \in \emptyset$ and therefore $x$ is certainly in at least one $A_\alpha$ with $\alpha  \in \emptyset$. But then $x \in \bigcup_{\alpha \in I}A_\alpha$.  Can someone help me and tell me what is wrong with this? Thank you.