So I'm just working on some simple arithmetic code. Here's what I got:
echo "The number should be 2";
declare -i input added
input= date +%w
let added="input/2"
echo "$added"
when I run it the output is
4
0
I'm trying to just get 2. What the heck am I doing wrong?