Crates.io | dt-tool |
lib.rs | dt-tool |
version | 0.7.0 |
source | src |
created_at | 2022-09-10 08:09:35.034189 |
updated_at | 2023-04-12 08:54:04.871189 |
description | dt - it's duck tape for your unix pipes |
homepage | https://github.com/hiljusti/dt |
repository | https://github.com/hiljusti/dt |
max_upload_size | |
id | 662397 |
size | 119,857 |
dt
It's duct tape for your unix pipes. Use it when you don't have a better tool.
In the words of Red Green:
Remember, it's only temporary... unless it works!
$ echo -e "3\n2\n1" | dt rev pls
1
2
3
$ alias scream-lines="dt [upcase words unlines] map pls"
$ echo "hey you pikachu" | scream-lines
HEY
YOU
PIKACHU
dt
is an experimental concatenative
programming language.
$ dtsh
dt 0.7.0
> 1 1 + print
2
> [[ n ]: n print " " print n 2 *] [print-and-double] def
> 1 [print-and-double] 7 times
1 2 4 8 16 32 64
> [[false] ["bye"] [true] ["hi"]] ? println
hi
$ cargo install dt-tool
$ dtup bootstrap
Shared under GPL v2.
A side quest of J.R. Hill | https://so.dang.cool | https://github.com/hiljusti