projects done in Rust to learn the language.
TODO List
- cat
- ls
- calc (done under its own project)
To build the projects do
cargo build --release
or just
make release
Don't let the name fool you, it is not a full reimplementation of the POSIX cat, it just reads the content of a file
./target/release/cat <file> [--reversed]
You can also reverse the cat output by adding a parameter after the file
LS: a very minimalistic bare bone implementation of ls
./target/release/ls <dir>
It just list files in a dir.
You can just do
./target/release/ls <dir>
which produces
However this one has options
You can add colours to the output with the --color
or -c
option
You can sort alphabetically the output with the --sort
or -s
option