mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 06:22:07 +02:00
let: add page (#14616)
* let: add page * Update pages/linux/let.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * Update pages/linux/let.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * Update pages/linux/let.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * Update pages/linux/let.md * add --help example Co-authored-by: Wiktor Perskawiec <git@spageektti.cc> --------- Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: Nelson Figueroa <30811275+nelsonfigueroa@users.noreply.github.com> Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
This commit is contained in:
parent
da2e0ed498
commit
4df55c67ed
1 changed files with 21 additions and 0 deletions
21
pages/linux/let.md
Normal file
21
pages/linux/let.md
Normal file
|
@ -0,0 +1,21 @@
|
|||
# let
|
||||
|
||||
> Evaluate arithmetic expressions in shell.
|
||||
> Supports variables, operators, and conditional expressions.
|
||||
> More information: <https://manned.org/let>.
|
||||
|
||||
- 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`
|
Loading…
Add table
Reference in a new issue