bash ping ip run command on reply
Checking host availability by using ping in bash scripts
Why align and equation environment do not tolerate empty lines? Find images by size: find / file / awk I've been trying to find png image files a certain height (over 500px).  I know that file will return image dimensions.  Example:    $ file TestImg1a.png  TestImg1a.png: PNG image data, 764 x 200, 4-bit colormap, non-interlaced      But I need to use this to find all files in a directory with a height over 500px.  I know how to print out all files regardless of height:  find . -name '*.png' | xargs file | awk '{print $7 " " $1}'   But how do I limit the $7 to those results greater than 500? "It was me" or "It was I" It was ... salted the earth around your flower deck.    I wrote the second form "It was me". I have chosen the most "appropriate" answer to this question as somebody who is learning English.  This decision was made on a phonetic basis so it's for sure I made a mistake.   Surely you have a rational explanation to this exercise, maybe a grammar rule, or is it an English expression? What's the fastest connection speed / shortest elapsed time using Migration Assistant? Why didn't the Emperor realize that torturing Luke to death in front of Vader might be a bad idea? Mile or miles? Singular or plural? Could you explain me please, why sometimes the word "mile" is used in singular, sometimes in plural, while in both cases it refers to several and not 1 mile.  Example:     They took part in a 26 mile long swimming race.   After 12 miles he got tired.   Thanks in advance to those who can enlighten me! Will acceleration rate of expansion of space become faster than speed of light? Round function in Excel, worksheet function vs VBA I had an application for returning closest matches to certain values in a large  cluster of values( as in my earlier )   and I chose a VBA solution. While in the course of using the said application, I observed that the results for the value of 0.5 were not correct. I had been using the VBA Round function which I found to be returning 0 for 0.5 rounded to integer whereas the worksheet round function returns 1. Strangely, the VBA round function returns 2 for 1.5. I had to substitute the worksheet function in place of the VBA one.  Am I missing something? Backslash escaping in code regions in comments I've noticed that in comments, when you create `code region` with backticks, the backslash will still work as an escape character within that region (but it should not, IMHO).  To clarify:   In comments, `\\` will be rendered as \, but it should be rendered as \\ In the post body itself, `\\` will be rendered as \\ (i.e., correctly)   This is especially confusing when you enter regular expressions into a comment, since backslash-escaping is very common there, and confusion increases if you are dealing with a regex that is double-escaped for representation in a string.   At some point you lose track how many backslashes you must make so the comment renders correctly, or you don't notice fast enough (or at all) and the comment contains wrong code where the same markup in a question or answer would come out as perfectly correct.   It's just that comments can't be corrected anymore after the grace period, leaving you with the choice of either deleting the comment, thus crippling the conversation, or engaging in a trial-and-error game of writing another comment with even more backslashes to explain the issue.  My question is two-fold:   Will this error be corrected? If yes, existing comments should probably be searched and "fixed" by a routine that tries to do the right thing (this is probably somewhere between hard and impossible) Or, can I rest assured that never ever the behavior of the backslash in comments is going to be changed, so I can start working around this issue by hand, knowing that they won't start displaying incorrectly at some point in the future? When I wanted to download Ubuntu 12.10 from ubuntu.com, I was asked to make a donation. However, there is only a PayPal option to make the payment. But I don't use PayPal. Is there any other option to make the payment? Rename a file to parent directory's name in terminal I have to deal with a large number of files nested inside of directories (one file per directory), resembling something like this:  fred/result.txt john/result.txt mary/result.txt ...   I am currently using the following command to process each of those files:  find . -maxdepth 1 -type d \( ! -name . \) -exec bash -c \"cd '{}' &amp;&amp; processResult result.txt\" \;   I am looking for something I can add into the end of this command that will change the filenames to fred.txt, etc. and then later move the file into the parent directory to eliminate the extra layer of directories.  What would be the best way to do this? Installing 3rd party python libraries for QGIS on Windows How do you detect support for VML or SVG in a browser I'm writing a bit of javascript and need to choose between SVG or VML (or both, or something else, it's a weird world). Whilst I know that for now that only IE supports VML, I'd much rather detect functionality than platform.  SVG appears to have a few properties which you can go for: window.SVGAngle for example.  Is this the best way to check for SVG support?  Is there any equivalent for VML?  Unfortuntaly - in firefox I can quite happily do all the rendering in VML without error - just nothing happens on screen. It's quite hard to detect that situation from script. List only regular files (but not directories) in current directory How to prove a finite field is not ordered? I have a set S={0,1}, and the addition and multiplication rules are  \begin{array}{c|cc} +&amp;0&amp;1\\ \hline 0&amp;0&amp;1\\ 1&amp;1&amp;0 \end{array}  \begin{array}{c|cc} *&amp;0&amp;1\\ \hline 0&amp;0&amp;0\\ 1&amp;0&amp;1 \end{array}  It is sure that it is a field. How can I prove this field can be ordered or not? Prove: $|a\sin x+b \cos x|\leq \sqrt{a^2+b^2}$ $$|a\sin x+b \cos x|\leq \sqrt{a^2+b^2}$$   I have tried: $$|a\sin x+b \cos x|\leq |a+b|\leq \sqrt{a^2+b^2}$$  enough to prove: $$|a+b|\leq \sqrt{a^2+b^2}$$  But I can find how to continue from here Who were the hooded people in The Rise of Skywalker? Near the end of Star Wars Episode IX: The Rise of Skywalker there are several hooded figures that are shown chanting stuff (in Sith?) and just hanging out with Palpatine. Who were these people? Is there a rule of integration that corresponds to the quotient rule? Scala Lists of lists of integers Can I concatenate multiple MySQL rows into one field? Using MySQL, I can do something like:  SELECT hobbies FROM peoples_hobbies WHERE person_id = 5;   My Output:  shopping fishing coding   but instead I just want 1 row, 1 col:  Expected Output:  shopping, fishing, coding   The reason is that I'm selecting multiple values from multiple tables, and after all the joins I've got a lot more rows than I'd like.  I've looked for a function on  and it doesn't look like the CONCAT or CONCAT_WS functions accept result sets.  So does anyone here know how to do this?