echo's the input back to stdout
cargo run --bin echo [sometext]
or
./echo [sometext]
for the binary
Print a file contents
cargo run --bin cat filepath
or
./cat filepath
for the binary
Lists all the contents of a directory
cargo run --bin ls path
or
./ls path
for the binary
Replicates unix find command
cargo run --bin find [starting_path] --[pattern] [value]
or
./find [starting_path] --[pattern] [value]
for the binary
- path -> defaults to current directory
- name
- all patterns are optional
Replicates unix find command
cargo run --bin grep [path(s)] --[pattern] [value]
or
./grep [path(s)] --[pattern] [value]
for the binary
- input