Crates.io | nrt |
lib.rs | nrt |
version | 0.1.0 |
source | src |
created_at | 2024-08-17 14:16:45.251035 |
updated_at | 2024-08-17 14:16:45.251035 |
description | nrt is a Rust-based command-line tool that replicates and extends the functionality of the Unix cat command. |
homepage | |
repository | https://github.com/adityakaklij/nrt |
max_upload_size | |
id | 1341726 |
size | 39,888 |
nrt
- A Rust-Based Clone of the cat
Commandnrt
is a lightweight and efficient command-line utility built in Rust, designed to replicate and extend the functionality of the classic Unix cat
command.
Whether you need to quickly view file contents, inspect file metadata, or perform basic file operations, nrt
provides a versatile toolset.
nrt
enhances the standard cat
command with the following capabilities:
cat
command.To install nrt
, use cargo
, Rust's package manager:
cargo install nrt
nrt
is easy to use with a variety of options to suit your needs. The general syntax is:
nrt <filename> [OPTION]
# Options
--size: Show the size of the file in bytes.
--mt: Display the last modified time of the file in UTC.
--ct: Display the creation time of the file in UTC.
--mode: Show the file's mode (permissions) in numeric form.
--lc: Count and display the number of lines in the file.
--n: Print all non-empty lines with their line numbers.
--cp: Copy the entire content of the file.
--rn <new_filename>: Rename the file to a new specified filename.
--help: Display a help message with usage instructions.
Contributions are welcome! If you find a bug, have a feature request, or want to contribute in any way, feel free to open an issue or submit a pull request.
nrt is licensed under the GPL-3.0