| Crates.io | ccsort |
| lib.rs | ccsort |
| version | 0.1.1 |
| created_at | 2024-12-17 04:47:29.475387+00 |
| updated_at | 2024-12-17 04:56:23.653813+00 |
| description | A simple clone of the Unix sort command, with multiple sorting algorithms |
| homepage | https://github.com/yildirimmurat/ccsort |
| repository | https://github.com/yildirimmurat/ccsort |
| max_upload_size | |
| id | 1485790 |
| size | 335,916 |
This is a clone of unix sort tool
The tool is used through the command line with the command ccsort
First, build the program by running the following command:
cargo build --release
To make the tool accessible from anywhere in your terminal, move the compiled executables to a directory that is included in your system's PATH.
sudo cp target/release/ccsort /usr/local/bin/
To verify the installation, check if the executable is accessible from anywhere in your terminal:
which ccsort
ccsort [options] <filename>
-u: Output only unique values (removes duplicates). Can work with other options
Example:ccsort -u tests/words.txt
-r: Sort the input using Radix Sort
Example:ccsort -r tests/words.txt
-m: Sort the input using Merge Sort
Example:ccsort -m tests/words.txt
-q: Sort the input using Quick Sort
Example:ccsort -q tests/words.txt
-h: Sort the input using Heap Sort
Example:ccsort -h tests/words.txt
--random: Sort the input using a random hashing sort
Example:ccsort --random tests/words.txt
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Feel free to open issues or submit pull requests to improve the tool. To contribute:
Many thanks to John Cricket for his Coding Challenges, which inspired this solution.