sir
is a command line application written in Rust that aims to mimic the functionality of the cat
command. It is an educational project and serves as a learning exercise for the Rust programming language.
- Displays the content of one or multiple files on the command line.
- Supports reading from standard input as well.
- Outputs the content of the files in sequential order.
- Rust (version 1.69.0 or higher)
-
Clone the repository:
git clone https://github.com/vixys/sir.git
-
Build the project:
cd `sir` cargo build --release
-
Run
sir
:./target/release/sir [options] [file1] [file2] ...
-
Run
sir
with one or multiple file arguments:sir file1.txt file2.txt
-
To read from standard input:
echo "Hello, sir!" | sir -
For more options and details, refer to the documentation (link_to_your_documentation).
sir
is licensed under the MIT License. See LICENSE file for more information.