mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-20 17:01:57 +00:00
Update cheatsheets
This commit is contained in:
@@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Calculate an expression:
|
||||
|
||||
`bc --expression='{{5 / 3}}'`
|
||||
`bc --expression '{{5 / 3}}'`
|
||||
|
||||
- Execute a script:
|
||||
|
||||
@@ -27,8 +27,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Calculate an expression with the specified scale:
|
||||
|
||||
`bc --expression='scale = {{10}}; {{5 / 3}}'`
|
||||
`bc --expression '{{scale = 10; 5 / 3}}'`
|
||||
|
||||
- Calculate a sine/cosine/arctangent/natural logarithm/exponential function using `mathlib`:
|
||||
|
||||
`bc --mathlib --expression='{{s|c|a|l|e}}({{1}})'`
|
||||
`bc --mathlib --expression '{{s|c|a|l|e}}({{1}})'`
|
||||
|
||||
Reference in New Issue
Block a user