title: How can I calculate pi using Bash command
body: <p>I am learning bash scripting. While exploring the math functions i am came across a command which calculated the value of pi. </p>
  
  <pre><code>seq -f '4/%g' 1 2 99999 | paste -sd-+ | bc -l
  </code></pre>
  
  <p>Although i understand how the basic seq command works, I am unable to understand how does the above command works. Can anybody please clarify how does it work.?</p>