interrogation point (question mark) instead of citation call-out
Question mark or bold citation key instead of citation number
I need to process a large file, around 400K lines and 200 M. But sometimes I have to process from bottom up. How can I use iterator (yield return) here? Basically I don't like to load everything in memory. I know it is more efficient to use iterator in .NET. Reading output of a command into an array in Bash command not found and syntax error near unexpected token I have this script to divide a file over a 100000 or even more in 50000 lines.  desc()                                                     {                                                       echo $1 $2|awk '{d=$1;}                                 BEGIN {a=1;b=0}                                            { f=d"0"a;                                                while ((getline x&lt;d)&gt;0)                                   { print x&gt;&gt;f".txt"                                        if (b++&gt;=50000)                                            {                                                         close(f);b=0;a++;f=(a&lt;10)?d"0"a:f=d""a                }                                                  }                                                   }                                                   END {print "Terminado ... ! "}'                         }                                                      if [ -f $1 ]; then                                              desc $1 $2                                      fi                                                        When I execute it I got this error message:  sh-3.2$ parte.sh pa.txt                                  : command not found                                      '/parte.sh: line 2: syntax error near unexpected token ` '/parte.sh: line 2: `desc()                              sh-3.2$                                                    Can anyone help to solve it? Totally sweet horizontal rules in LaTeX Finish an activity after a time period Why did Itachi say that he needs to get someone's MS to get EMS while Sasuke only had a normal Sharingan? Prove that $\sum_{n=0}^\infty \frac{(-1)^n}{3n+1} = \frac{\pi}{3\sqrt{3}}+\frac{\log 2}{3}$ Prove that $$\sum_{n=0}^\infty \frac{(-1)^n}{3n+1} = \frac{\pi}{3\sqrt{3}}+\frac{\log 2}{3}$$   I tried to look at $$ f_n(x) = \sum_{n=0}^\infty \frac{(-1)^n}{3n+1} x^n $$  And maybe taking it's derivative but it didn't work out well.  Any ideas? Prove that the derivative of $x^w$ is $w x^{w-1}$ for real $w$ Can anyone give a proof of the derivative of this type of function? Specifically showing that  $\dfrac{d(x^w)}{dx} = wx^{w-1}$ for a real $w$?  I tried to use the Taylor series expansion for $(x+dx)^w$ and got the correct result. However, the proof of the Taylor series requires knowledge of the derivative of these functions. So this is essentially circular reasoning. I know that the same series is also given by the binomial expansion, but that's not entirely satisfactory either, because where's the proof that the binomial expansion works for all reals (isn't it only apparent for integers)? So far all of the arguments I've come across involve circular reasoning. I was thinking of showing that the binomial expansion is true for all reals using some form of proof by induction e.g. something like this.  I'm really not sure. android how an EditText work as AutoComplete If I was... If I were...   When is it correct to use "If I was" vs. "If I were" in standard English? US Salary Transfered to Indian Acc and Tax Relation I am on an H1b visa working and receiving a salary in the US. I have transferred approximately $15-20k to my account in India Account (not an NRE account).    How would this transfer affect my taxes in US and India. How can I avoid tax on the money that I have transferred. Would any investments help save taxes? Do I need to declare anything? If so, where ? babel shorthand "| doesn't work in macros The package babel with the ngerman option (and most other languages as well, but not english) provides the shorthand "|, which prevents a ligature at the given position (see p. 81 of the , e.g. Auf"|lage will result in the word Auflage without an fl-ligature (as is desired because, in German, you don't want ligatures across morpheme borders).  However, when placed in a macro, "| doesn't work anymore. Why is this and how can I circumvent it?  \documentclass{article}  %\usepackage[T1]{fontenc}% doesn't help \usepackage[ngerman]{babel}  \newcommand{\foo}{"|}  \begin{document}  ff  f"|f  f\foo f  \end{document} How can I remove the first line of a text file using bash/sed script? After the DEM creation, I wanted to create slope layer.   However, the result has not satisfied me. I don't think the slope map is correct. Have you ever encountered false calculated terrain map?  This is the DEM:    And this is the slope layer. Solution to German Tank Problem Is there a formal mathematical proof that the solution to the  is a function of only the parameters k (number of observed samples) and m (maximum value among observed samples)? In other words, can one prove that the solution is independent of the other sample values besides the maximum value? I'm trying to show that for $b&gt;1$, $x&gt;0$ and $x$ irrational, that $$\sup \{b^p:p\in Q,\;0&lt;p&lt;x\} = \inf\{b^q:q\in Q,\;x&lt;q\}$$ I know this follows immediately if we define $b^x=\exp(x\log(b))$ and use the fact that the exponential function is strictly increasing and continuous over $\mathbb R$, but I'm not allowed to do that. In fact, I only have that $b^{m/n}=(b^{1/n})^m$, where $b^{1/n}$ means the positive $n^{th}$ root of $b$; $b^x$ is not yet defined for irrational $x$.  I know that the supremum and infimum both exist because if $b&gt;1$ and $p&lt;q$, then $b^p&lt;b^q$. Also, by assuming that the inf $&lt;$ sup, I got a contradiction. The part I'm stuck on is deriving a contradiction from assuming that sup $&lt;$ inf. Does anybody have any ideas?  Thank you. Orthogonal projections with $\sum P_i =I$, proving that $i\ne j \Rightarrow  P_{j}P_{i}=0$ Historical flight data outside of the USA? Good 1st PDE book for self study Add folder name to beginning of filename