++ operation in shell script

Test script

#! sh

num=0

echo $num
num=$(($num + 1))
echo $num
num=$((num + 1))
echo $num
let num++
echo $num
Execution result
❯ ./test.sh          
0
1
2
3

No comments:

Lognote - Log viewer, Android logcat viewer for Windows, Linux, Mac

android logcat viewer for Windows, Linux, Mac   https://github.com/cdcsgit/lognote Filtered log viewer Android logcat viewer, kotlin ...