[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



No impressive here and no stinkin' page layouts either. However one thing I do use is: let "a=4+3+5+2017" let "b=a%156" let c=a%44" There's an addition example for variable a, a modulus and use of already defined variable for b variable and c variable. Hope this helps. On Sun, 5 Mar 2017, Richard Owlett wrote:

Date: Sun, 5 Mar 2017 10:42:16
From: Richard Owlett <rowlett@cloud85.net>
To: debian-user <debian-user@lists.debian.org>
Subject: Recomended tutoial(s) on doing arithmetic in Bash scripts
Resent-Date: Sun,  5 Mar 2017 15:43:08 +0000 (UTC)
Resent-From: debian-user@lists.debian.org

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.
TIA




--


Reply to: