Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1677

Doing simple math from the command line (like PowerShell)

$
0
0
I like the way that one can do simple math from the PowerShell command line, example;
Code:
PS E:\utils> 52*4
208

Using the following alias;
Code:
e:\utils>alias unknown_cmd
echo %@eval[%@filter[0123456789.*+-/\,"%$"]]

...I can now do;
Code:
e:\utils>52*4
208
...from the TCC Command line.

Again, this is only for simple math, not for log(), fact(), MOD, etc.

When I enter an UNKNOWN_CMD, for example;
Code:
e:\utils>dze
TCC: No expression ""

...which is not pretty...

Read more

Viewing all articles
Browse latest Browse all 1677

Trending Articles