diff --git a/pages/linux/let.md b/pages/linux/let.md new file mode 100644 index 000000000..8754e44ee --- /dev/null +++ b/pages/linux/let.md @@ -0,0 +1,21 @@ +# let + +> Evaluate arithmetic expressions in shell. +> Supports variables, operators, and conditional expressions. +> More information: . + +- Evaluate a simple arithmetic expression: + +`let "{{result = a + b}}"` + +- Use post-increment and assignment in an expression: + +`let "{{x++}}"` + +- Use conditional operator in an expression: + +`let "{{result = (x > 10) ? x : 0}}"` + +- Display help: + +`let --help`