Search notes:

Bash built-in: et

let evaluates arithmetic expressions.
id++, id-- variable post-increment, post-decrement
++id, --id variable pre-increment, pre-decrement
-, + unary minus, plus
!, ~ logical and bitwise negation
** exponentiation
+, -, *, /, % addition, substraction, multiplication, division, remainder
<<, >> left and right bitwise shifts
<=, >=, <, > comparison
==, != equality, inequality
&, ^, |, &&, || Bitwise operations (and, xor, or)
&, ^, | Logical operations (and, or)
expr ? expr : expr Conditional (ternary) operator
=, *=, /=, %=, `+=, -=, <<=, >>=, `&=, ^=, |= assignment
num=41
let num++
echo $num

See also

The shell command expr.
Bash builtins

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Linux/sh...', 1758209358, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Linux/shell/bash/built-in/let(63): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78