2022-01-13 20:34:59 +03:00
|
|
|
$ fq -i
|
|
|
|
null> "abc" | topem
|
|
|
|
"-----BEGIN-----\nYWJj\n-----END-----\n"
|
2022-02-07 19:41:05 +03:00
|
|
|
null> "abc" | topem | "before" + . + "between" + . + "after" | frompem | tostring
|
|
|
|
"abc"
|
2022-01-13 20:34:59 +03:00
|
|
|
"abc"
|
|
|
|
null>
|
2022-02-10 02:38:40 +03:00
|
|
|
null> (0,1,1024,99999999999999999999) as $n | (2,8,16,62,64) as $r | "\($r): \($n) \($n | toradix($r)) \($n | toradix($r) | fromradix($r))" | println
|
|
|
|
2: 0 0 0
|
|
|
|
8: 0 0 0
|
|
|
|
16: 0 0 0
|
|
|
|
62: 0 0 0
|
|
|
|
64: 0 0 0
|
|
|
|
2: 1 1 1
|
|
|
|
8: 1 1 1
|
|
|
|
16: 1 1 1
|
|
|
|
62: 1 1 1
|
|
|
|
64: 1 1 1
|
|
|
|
2: 1024 10000000000 1024
|
|
|
|
8: 1024 2000 1024
|
|
|
|
16: 1024 400 1024
|
|
|
|
62: 1024 gw 1024
|
|
|
|
64: 1024 g0 1024
|
|
|
|
2: 99999999999999999999 1010110101111000111010111100010110101100011000011111111111111111111 99999999999999999999
|
|
|
|
8: 99999999999999999999 12657072742654303777777 99999999999999999999
|
|
|
|
16: 99999999999999999999 56bc75e2d630fffff 99999999999999999999
|
|
|
|
62: 99999999999999999999 1V973MbJYWoT 99999999999999999999
|
|
|
|
64: 99999999999999999999 1mL7nyRz3___ 99999999999999999999
|
2022-01-13 20:34:59 +03:00
|
|
|
null> ^D
|