<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Shell Tips! - Latest Comments</title><link>http://shelltips.disqus.com/</link><description></description><atom:link href="https://shelltips.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 30 Mar 2020 06:28:04 -0000</lastBuildDate><item><title>Re: 4. How to Check if a Bash Array contains a value</title><link>https://www.shell-tips.com/2020/01/27/iterate-and-check-if-a-bash-array-contains-a-value/#comment-4853544232</link><description>&lt;p&gt;this article helped to me solve my problem. &lt;br&gt;Thanks. :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Prince Chawla</dc:creator><pubDate>Mon, 30 Mar 2020 06:28:04 -0000</pubDate></item><item><title>Re: How To Upgrade your Bash Version on MacOS | Shell Tips!</title><link>https://www.shell-tips.com/2020/01/16/how-to-upgrade-bash-version-on-macos/#comment-4830481167</link><description>&lt;p&gt;Finally, a proper write up!  Thanks, this worked.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug W</dc:creator><pubDate>Thu, 12 Mar 2020 14:33:02 -0000</pubDate></item><item><title>Re: Performing Math calculation in Bash</title><link>https://www.shell-tips.com/2010/06/14/performing-math-calculation-in-bash/#comment-4778282397</link><description>&lt;p&gt;A bit strange to put black text on a dark green background&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Fri, 31 Jan 2020 09:59:44 -0000</pubDate></item><item><title>Re: 
        Sudo: Sorry, You Must Have a Tty to Run Sudo
        
    </title><link>https://www.shell-tips.com/2014/09/08/sudo-sorry-you-must-have-a-tty-to-run-sudo/#comment-4516337063</link><description>&lt;p&gt;We were trying to do restorations with Rubrik backups and the permissions weren't being set on the files post restoration. This fixed it. Thanks!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex</dc:creator><pubDate>Tue, 25 Jun 2019 22:57:56 -0000</pubDate></item><item><title>Re: Performing Math calculation in Bash</title><link>https://www.shell-tips.com/2010/06/14/performing-math-calculation-in-bash/#comment-3920651065</link><description>&lt;p&gt;There's nothing to fix, as said the result si correct. &lt;br&gt;There's no practical difference between 1 and 0.99999999999999999999.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">gerlos</dc:creator><pubDate>Mon, 28 May 2018 07:42:02 -0000</pubDate></item><item><title>Re: Performing Math calculation in Bash</title><link>https://www.shell-tips.com/2010/06/14/performing-math-calculation-in-bash/#comment-3920032002</link><description>&lt;p&gt;BP=$(echo "scale=2; $NumBurgers*$Price" |bc)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">George Tanner</dc:creator><pubDate>Sun, 27 May 2018 16:29:50 -0000</pubDate></item><item><title>Re: Performing Math calculation in Bash</title><link>https://www.shell-tips.com/2010/06/14/performing-math-calculation-in-bash/#comment-3742151118</link><description>&lt;p&gt;I don't recommend to use 'calc' as name for function, because already exist calculator, named 'calc'. A way better than 'bc'. You can install it by "sudo apt install apcalc". You can simply use floating point operations without any additional options.&lt;br&gt; Actually I was searching page for full manual or tutorial for 'calc' in Google.&lt;/p&gt;&lt;p&gt;#using your example:&lt;br&gt;calc 2+3*8/7&lt;br&gt;~5.42857142857142857143&lt;br&gt;#&lt;/p&gt;&lt;p&gt;Also 'calc' support math functions (sin(x), cos(x), tan(x), exp(x), sqrt(x), log(x), ln(x), x^y (raising 'x' to power 'y'), ...) and many more.&lt;br&gt;using:&lt;br&gt;calc "expression"&lt;br&gt;#or&lt;br&gt;calc &amp;lt;press enter=""&amp;gt;&lt;br&gt;#writing expressions&lt;br&gt;exit&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Мирослав Кашеба</dc:creator><pubDate>Sun, 04 Feb 2018 10:08:54 -0000</pubDate></item><item><title>Re: 
        Sudo: Sorry, You Must Have a Tty to Run Sudo
        
    </title><link>https://www.shell-tips.com/2014/09/08/sudo-sorry-you-must-have-a-tty-to-run-sudo/#comment-3738127613</link><description>&lt;p&gt;Life saver. Had issue using Wing Personal to debug python code on centOS 7 permissions issue running subproc() command required password.&lt;br&gt;This was way around it.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Niall Byrne</dc:creator><pubDate>Thu, 01 Feb 2018 19:53:42 -0000</pubDate></item><item><title>Re: Performing Math calculation in Bash</title><link>https://www.shell-tips.com/2010/06/14/performing-math-calculation-in-bash/#comment-3613476636</link><description>&lt;p&gt;Nice tutorial. very helpful. thanks for uploading.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Vivek Kumar Maurya</dc:creator><pubDate>Mon, 13 Nov 2017 04:21:55 -0000</pubDate></item><item><title>Re: LINUX : How to reload or change your current shell ?</title><link>https://www.shell-tips.com/2007/01/10/linux-how-to-reload-or-change-your-current-shell/#comment-3581764771</link><description>&lt;p&gt;That's nice way. Thanks.&lt;/p&gt;&lt;p&gt;To improve on it, we could use...&lt;/p&gt;&lt;p&gt;exec $SHELL&lt;/p&gt;&lt;p&gt;which would work for all shells.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pothi Kalimuthu</dc:creator><pubDate>Tue, 24 Oct 2017 00:08:24 -0000</pubDate></item><item><title>Re: Performing Math calculation in Bash</title><link>https://www.shell-tips.com/2010/06/14/performing-math-calculation-in-bash/#comment-3540515331</link><description>&lt;p&gt;These tips still work, although I would've put the "awk" example before the "bc" example considering it tends to come preinstalled with most Linux distributions including the new "Linux subsystems for Windows" as provided by creator preview editions if enabled by the user.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">kreezxil</dc:creator><pubDate>Thu, 28 Sep 2017 09:33:03 -0000</pubDate></item><item><title>Re: 
        Sudo: Sorry, You Must Have a Tty to Run Sudo
        
    </title><link>https://www.shell-tips.com/2014/09/08/sudo-sorry-you-must-have-a-tty-to-run-sudo/#comment-3511719698</link><description>&lt;p&gt;salamat po!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">lanerfy</dc:creator><pubDate>Mon, 11 Sep 2017 00:01:27 -0000</pubDate></item><item><title>Re: 
        Sudo: Sorry, You Must Have a Tty to Run Sudo
        
    </title><link>https://www.shell-tips.com/2014/09/08/sudo-sorry-you-must-have-a-tty-to-run-sudo/#comment-3387880060</link><description>&lt;p&gt;thank you, the "by command" was useful.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">_nd345-SysAdmin</dc:creator><pubDate>Tue, 27 Jun 2017 08:50:05 -0000</pubDate></item><item><title>Re: Performing Math calculation in Bash</title><link>https://www.shell-tips.com/2010/06/14/performing-math-calculation-in-bash/#comment-3383106317</link><description>&lt;p&gt;Thank you!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Natan Felles</dc:creator><pubDate>Fri, 23 Jun 2017 20:45:22 -0000</pubDate></item><item><title>Re: 
        Sudo: Sorry, You Must Have a Tty to Run Sudo
        
    </title><link>https://www.shell-tips.com/2014/09/08/sudo-sorry-you-must-have-a-tty-to-run-sudo/#comment-3253966907</link><description>&lt;p&gt;ssh -t user@host -t 'sudo whatever' &lt;br&gt;as the manual says and from above:&lt;/p&gt;&lt;p&gt;Multiple -t options force tty allocation, even if ssh has no local tty.&lt;br&gt;Did not try -tt which also likely works.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">AET</dc:creator><pubDate>Thu, 13 Apr 2017 05:03:26 -0000</pubDate></item><item><title>Re: Performing Math calculation in Bash</title><link>https://www.shell-tips.com/2010/06/14/performing-math-calculation-in-bash/#comment-3208656563</link><description>&lt;p&gt;to quote from R Inferno (1st Circle):&lt;/p&gt;&lt;p&gt;"Do not confuse numerical error with an error. An error is when a computation is wrongly performed. Numerical error is when there is visible noise resulting from the finite representation of numbers. It is numerical error—not an error—when one-third is represented as 33%."&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jeňa Kočí</dc:creator><pubDate>Fri, 17 Mar 2017 07:13:56 -0000</pubDate></item><item><title>Re: 
        Sudo: Sorry, You Must Have a Tty to Run Sudo
        
    </title><link>https://www.shell-tips.com/2014/09/08/sudo-sorry-you-must-have-a-tty-to-run-sudo/#comment-3196113436</link><description>&lt;p&gt;Obrigado. Me ajudou :]&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Wellington Oliveira</dc:creator><pubDate>Fri, 10 Mar 2017 07:04:31 -0000</pubDate></item><item><title>Re: Performing Math calculation in Bash</title><link>https://www.shell-tips.com/2010/06/14/performing-math-calculation-in-bash/#comment-3180974563</link><description>&lt;p&gt;You miss $ before myvar:&lt;/p&gt;&lt;p&gt;myvar=$(expr 1 + $myvar)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michal</dc:creator><pubDate>Wed, 01 Mar 2017 10:39:25 -0000</pubDate></item><item><title>Re: Performing Math calculation in Bash</title><link>https://www.shell-tips.com/2010/06/14/performing-math-calculation-in-bash/#comment-3147560163</link><description>&lt;p&gt;Thanks, nice trick the | bc&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">SvennD</dc:creator><pubDate>Fri, 10 Feb 2017 06:16:26 -0000</pubDate></item><item><title>Re: Performing Math calculation in Bash</title><link>https://www.shell-tips.com/2010/06/14/performing-math-calculation-in-bash/#comment-3126579100</link><description>&lt;p&gt;Thanks, very good tutorial :) I was wondering about this for a while and never googled it till now - I should stick to my "google everything" rule more often :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jeňa Kočí</dc:creator><pubDate>Sun, 29 Jan 2017 11:34:11 -0000</pubDate></item><item><title>Re: 
        Advanced Math Calculation in Bash Using GNU Bc
        
    </title><link>https://www.shell-tips.com/2015/01/01/advanced-math-calculation-in-bash-using-gnu-bc/#comment-2876846799</link><description>&lt;p&gt;It looks new to anyone who wasn't able to undergo this kind of learning. From this, there would truly be some other techniques that can guide them and would help them in solving those topics in mathematics.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">australia assignment help</dc:creator><pubDate>Mon, 05 Sep 2016 02:10:16 -0000</pubDate></item><item><title>Re: Performing Math calculation in Bash</title><link>https://www.shell-tips.com/2010/06/14/performing-math-calculation-in-bash/#comment-2742531169</link><description>&lt;p&gt;It's really interesting that in performing mathematics there are some programs that are capable in doing it. For sure, there will be a lot of people who will going to try this up and could help them to apply it on their work.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">essay writing service</dc:creator><pubDate>Tue, 21 Jun 2016 10:07:14 -0000</pubDate></item><item><title>Re: 
        Sudo: Sorry, You Must Have a Tty to Run Sudo
        
    </title><link>https://www.shell-tips.com/2014/09/08/sudo-sorry-you-must-have-a-tty-to-run-sudo/#comment-2393728290</link><description>&lt;p&gt;any tips for "cssh"? ("Cluster ssh" version 4.x)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">noname418</dc:creator><pubDate>Fri, 04 Dec 2015 15:49:54 -0000</pubDate></item><item><title>Re: Performing Math calculation in Bash</title><link>https://www.shell-tips.com/2010/06/14/performing-math-calculation-in-bash/#comment-2340422942</link><description>&lt;p&gt;It's because of rounding errors: &lt;a href="https://en.wikipedia.org/wiki/Round-off_error" rel="nofollow noopener" target="_blank" title="https://en.wikipedia.org/wiki/Round-off_error"&gt;https://en.wikipedia.org/wi...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;It's not nice for us humans ;-) bu the answer is essentially the right number: in almost all the real applications you can't tell the difference between 1 and 0.99999999999999999999! :-)&lt;/p&gt;&lt;p&gt;For a nicer output just round it adding a pipe like this: | python -c "print round(float(raw_input()))"&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">gerlos</dc:creator><pubDate>Tue, 03 Nov 2015 07:08:14 -0000</pubDate></item><item><title>Re: Flash &amp;#8211; How to fix the &amp;#8220;Security sandbox violation: BitmapData.draw&amp;#8221;</title><link>https://www.shell-tips.com/2009/08/30/flash-how-to-fix-the-security-sandbox-violation-bitmapdata-draw/#comment-2200523441</link><description>&lt;p&gt;I am not a developer but I keep getting this flash player dialog pop up I  have IE 11. I never had this pop up before updating to flash 18...So I deleted flash player. Apparently there is a built in flash player in IE 11? I need to know how to get rid of the pop up error box, the latest error  was,Security sandbox violation...Please tell me how to disable this dialog box..It's very annoying.thank you.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mary Burczynski</dc:creator><pubDate>Tue, 18 Aug 2015 06:42:46 -0000</pubDate></item></channel></rss>