Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #178480

Re: Recomended tutoial(s) on doing arithmetic in Bash scripts

From David Christensen <dpchrist@holgerdanske.com>
Newsgroups linux.debian.user
Subject Re: Recomended tutoial(s) on doing arithmetic in Bash scripts
Date 2017-03-06 04:40 +0100
Message-ID <thRF7-1TU-5@gated-at.bofh.it> (permalink)
References <thGA1-2jU-5@gated-at.bofh.it> <thKki-51v-21@gated-at.bofh.it> <thLgl-5Fg-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 03/05/2017 12:41 PM, Richard Owlett wrote:
> On 03/05/2017 01:48 PM, David Christensen wrote:
>> On 03/05/2017 07:42 AM, Richard Owlett wrote:
>>> I'm interested in "expr" and "bc".
>>> The man pages lack reasonable examples.
>>> The tutorial/HOWTO pages confuse the issue with fancy page layouts
>>> and/or code samples showing how impressive the author can make the
>>> script's output.
>>>
>>> Suggestions please.
>>
>> https://www.perl.org/
>
> Browsing the site I found some unintended humor - "The behavior of
> binary arithmetic operators depends on whether they're used on numbers
> or strings." http://learn.perl.org/faq/perlfaq4.html

That's not unintended humor, that's a bug in the documentation.  It 
should say:

     "The behavior of bitwise operators depends on whether they're
     used on numbers or strings."


I've filed a bug report -- thanks for the tip.


> More seriously, the site demonstrates to convey useful information to
> different audiences. I suspect I'm going get even less sleep ;>
>
> Thank you.

YW.  If you're interested in Perl 5, "Learning Perl" is the canonical 
introductory text:

    http://shop.oreilly.com/product/0636920049517.do


David

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Recomended tutoial(s) on doing arithmetic in Bash scripts Richard Owlett <rowlett@cloud85.net> - 2017-03-05 16:50 +0100
  Re: Recomended tutoial(s) on doing arithmetic in Bash scripts Reco <recoverym4n@gmail.com> - 2017-03-05 17:30 +0100
  Re: Recomended tutoial(s) on doing arithmetic in Bash scripts <tomas@tuxteam.de> - 2017-03-05 17:30 +0100
    Re: Recomended tutoial(s) on doing arithmetic in Bash scripts GiaThnYgeia <GiaThnYgeia@openmailbox.org> - 2017-03-05 19:20 +0100
      Re: Recomended tutoial(s) on doing arithmetic in Bash scripts <tomas@tuxteam.de> - 2017-03-05 21:40 +0100
      Re: Recomended tutoial(s) on doing arithmetic in Bash scripts Greg Wooledge <wooledg@eeg.ccf.org> - 2017-03-06 14:40 +0100
        Re: Recomended tutoial(s) on doing arithmetic in Bash scripts <tomas@tuxteam.de> - 2017-03-06 15:00 +0100
        Re: Recomended tutoial(s) on doing arithmetic in Bash scripts Jörg-Volker Peetz <jvpeetz@web.de> - 2017-03-06 16:00 +0100
          Re: Recomended tutoial(s) on doing arithmetic in Bash scripts <tomas@tuxteam.de> - 2017-03-06 16:40 +0100
    Re: Recomended tutoial(s) on doing arithmetic in Bash scripts Richard Owlett <rowlett@cloud85.net> - 2017-03-05 19:20 +0100
      Re: Recomended tutoial(s) on doing arithmetic in Bash scripts Richard Owlett <rowlett@cloud85.net> - 2017-03-05 19:50 +0100
      Re: Recomended tutoial(s) on doing arithmetic in Bash scripts <tomas@tuxteam.de> - 2017-03-05 21:30 +0100
        Re: Recomended tutoial(s) on doing arithmetic in Bash scripts Richard Owlett <rowlett@cloud85.net> - 2017-03-05 22:00 +0100
    Re: Recomended tutoial(s) on doing arithmetic in Bash scripts Jude DaShiell <jdashiel@panix.com> - 2017-03-05 23:20 +0100
      Re: Recomended tutoial(s) on doing arithmetic in Bash scripts Richard Owlett <rowlett@cloud85.net> - 2017-03-06 12:20 +0100
        Re: Recomended tutoial(s) on doing arithmetic in Bash scripts <tomas@tuxteam.de> - 2017-03-06 12:40 +0100
  Re: Recomended tutoial(s) on doing arithmetic in Bash scripts David Christensen <dpchrist@holgerdanske.com> - 2017-03-05 20:50 +0100
    Re: Recomended tutoial(s) on doing arithmetic in Bash scripts Richard Owlett <rowlett@cloud85.net> - 2017-03-05 21:50 +0100
      Re: Recomended tutoial(s) on doing arithmetic in Bash scripts David Christensen <dpchrist@holgerdanske.com> - 2017-03-06 04:40 +0100
    Re: Recomended tutoial(s) on doing arithmetic in Bash scripts <tomas@tuxteam.de> - 2017-03-05 22:30 +0100
  Re: Recomended tutoial(s) on doing arithmetic in Bash scripts Jude DaShiell <jdashiel@panix.com> - 2017-03-05 23:10 +0100

csiph-web