I need to find the largest file in the current and subsequent directory. I tried   ls -Rlh | awk '{print $3 " " $5 " " $9}'    but do not know if it is ok, how to sort and select the largest file.
I am trying to find the largest file in a directory recursively. If there is a subdirectory inside of that directory the function needs to go inside that directory and check to see if the largest file is there. Once the largest file is found the output is displayed with the relative path name and the name and size of the largest file.  EX:  dude@shell2 (~...assignment/solutions) % bash maxfile.sh ~/test class/asn dude.h.gch: 9481628   This is what I have:  #!/bin/sh clear  recursiveS() {     for d in *; do         if [ -d $d ]; then             (cd $d; echo $(pwd)/$line; du -a; recursiveS;)         fi     done } recursiveS   I have been stuck for a while now. I cannot implement this by pipelining a number of existing Unix tools. Any ideas would be nice!
Verb form of "must needs" Then touching the shoulder of a townsman who stood near to him, he addressed him in a formal and courteous manner:      "I pray you, good Sir," said he, "who is this woman? -- and wherefore is she here set up to public shame?"      "You must needs be a stranger in this region, friend," answered the townsman, looking curiously at the questioner and his savage companion, "else you would surely have heard of Mistress Hester Prynne and her evil doings. She hath raised a great scandal, I promise you, in godly Master Dimmesdale's church. "   As far as I know we always use first form of the verb after "must". For instance: "You must go". We never say "You must goes". Also, we never use -s/es with a verb that comes with "You". What are the circumstances in which writer has used "needs" after "You must" in "You must needs to be a stranger in this region."? Examples and further results about the order of the product of two elements in a group Let $G$ be a group and let $a,b$ be two elements of $G$. What can we say about the order of their product $ab$?   says "not much":     There is no general formula relating the order of a product $ab$ to the orders of $a$ and $b$. In fact, it is possible that both $a$ and $b$ have finite order while $ab$ has infinite order, or that both $a$ and $b$ have infinite order while $ab$ has finite order.   On the other hand no examples are provided. $(\mathbb{Z},+), 1$ and $-1$ give an example of elements of infinite order with product of finite order. I can't think of any example of the other kind! So:   What's an example of a group $G$ and two elements $a,b$ both of finite order such that their product has infinite order?     Wikipedia then states:     If $ab = ba$, we can at least say that $\mathrm{ord}(ab)$ divides $\mathrm{lcm}(\mathrm{ord}(a), \mathrm{ord}(b))$   which is easy to prove, but not very effective. So:   What are some similar results about the order of a product, perhaps with some additional hypotheses? Mean Value Theorem: $\frac{2}{\pi}<\frac{\sin x}{x}<1$ Solving a six-degree polynomial of the form $ax^6+bx^3+g$. I read that it is not always possible to solve but from Wikipedia:      Some sixth degree equations, such as $ax^6 + dx^3 + g = 0$, can be solved   by factorizing into radicals, but other sextics cannot.   So how do you solve this? I've stumbled upon this equation where; $a = n^2$, $d=m^2n-2p^2$, and $g=m^4$. Where the $a,d,g$ corresponds to the above mentioned sextic-equation and $m,n,p$ are input variables. I apologize for that ton of variables in use, might cause some confusion. Is this possible using Galois Theory or by any other means? I know that the compiler will sometimes initialize memory with certain patterns such as 0xCD and 0xDD.  What I want to know is when and why this happens.  When  Is this specific to the compiler used?  Do malloc/new and free/delete work in the same way with regard to this?  Is it platform specific?  Will it occur on other operating systems, such as Linux or VxWorks?  Why  My understanding is this only occurs in Win32 debug configuration, and it is used to detect memory overruns and to help the compiler catch exceptions.  Can you give any practical examples as to how this initialization is useful?  I remember reading something (maybe in Code Complete 2) saying that it is good to initialize memory to a known pattern when allocating it, and certain patterns will trigger interrupts in Win32 which will result in exceptions showing in the debugger.  How portable is this? Is it correct to say I electrocuted my friend if he was only injured by electricity? How to get the filename without the extension from a path in Python? How to get the filename without the extension from a path in Python? For instance, if I had &quot;/path/to/some/file.txt&quot;, I would want &quot;file&quot;. Widget - unable to load a hot question, check your internet connection Where [if anywhere] should the apostrophe go in "three days work"? Which is correct?     1 Three day's work      2 Three days' work      3 Three days work   I would probably guess (2) is right, since the work belongs to the three days ("three days of work"). But I'm not sure. Would it be different if it was only one day? How to set custom keyboard shortcuts from terminal? How do we know the universe is expanding, and not that its contents are shrinking? Is there a physical reason why not to think that instead of space expanding, all physical constants and parameters are shrinking (including of course the instruments we use to measure the constants) and space is static, or is it a case of Occam's razor? Does a Warlock receive the benefit of their familiar's Magic Resistance trait? The Warlock has access to special forms for their find familiar spell through the Pact of the Chain feature. I'm wondering if these special forms, the Quasit, Imp, and Pseudodragon in particular, allow the player character to share the familiar's Magic Resistance feature. In the Monster Manual each of these creatures has a sidebar that states that the familiar shares its Magic Resistance feature with the companion they are bonded to, but the PHB doesn't mention this in any of the creatures' stat blocks.   For example, in the Variant: Pseudodragon Familiar sidebar on page 254 of the MM it says:     "While the pseudodragon is within 10 feet of its companion,        the companion shares the pseudodragon's Magic Resistance trait."   This feature seems clear in the MM but I'm led to believe that it wasn't intended for Player Characters since mention of it is absent from the stat blocks in Appendix D of the PHB (pages 307-309).  Would a 3rd level warlock who chose one of these familiar forms through the Pact of the Chain feature benefit from advantage from saving throws from spells and other magical effects due to these special forms, or was this feature only meant for powerful NPCs and enemy spellcasters who had made this link with these familiars themselves? 8 bits representing the number 7 look like this:  00000111   Three bits are set.     What are algorithms to determine the number of set bits in a 32-bit integer? How do comment @replies work? Who owns the copyright to S[OFU] content? What with  today, possibly this is a good time to ask: who actually owns the copyright to questions, answers and comments submitted to StackOverflow and relatives?  Over in , we have the OP reaching the conclusion that SO owns the copyright and is licensing it under CC-Attribution-Sharealike, with no apparent confirmation or denial from staff, and in  we have a moderator asserting that Jeff owns the copyright to SO content.  As I note in a comment on the latter, though (which was met with deafening silence), I'm failing to find any evidence that this is the case.  I've looked for any kind of terms of service I may have agreed to indicating that I am signing over ownership of my words when I hit submit, and I can't find one.  Certainly the fact that I'm agreeing to CC-Attribution-Sharealike licensing is clear enough, but it seems to me as if I am retaining copyright while agreeing to those licensing terms, and S[OFU] is using what I have written under that license.  What's the deal?  Did I forget about something that I agreed to in the signup process (and if so, why can't I find it afterward)?  Do the owners and administrators of S[OFU] believe that they own copyright to the UGC?  Just what is going on here?  Edit as to why this matters (from answer comment thread): If I retain copyright, I can also choose to license the original content to other parties under other terms (such as using a zero-requirements license, using an attribution-required license without sharealike, etc). If SO has the copyright, I can't. Should smilies be turned into images in questions and answers? A lot of mention has been made of the seriousness of Stack Overflow (and presumably Server Fault). Would it be a good idea to turn  :-) into actual images as per  in questions and answers? Sending & Receiving SMS via WiFi Is there a way to send and receive SMS when a cellular signal is not available, but WiFi is?  I'm often on-site at locations where the building has a strong WiFi (Internet) connection, but a simple cell signal is spotty at best. Maven artifact and groupId naming Website with a collection of sci fi stories set in the same universe; powerful AIs being regarded as Gods, one named Gaia, and a "technopocalypse" There is a site with lots of stories all set in a future with super powerful AIs regarded as Gods, the most powerful being matrioshka brains. They have a specific terminology but I can't remember their names. Earth has been converted into a similiar godlike computer called "Gaia" and has expelled all humans creating a dystopian exodus across the solar system. And something about rogue Von Neumann machines causing a huge crisis dubbed the "technopocalypse". How can I prove $\sup(A+B)=\sup A+\sup B$ if $A+B=\{a+b\mid a\in A, b\in B\}$ If $A,B$ non empty, upper bounded sets and $A+B=\{a+b\mid a\in A, b\in B\}$, how can I prove that $\sup(A+B)=\sup A+\sup B$?