ccsort 0.1.1

A simple clone of the Unix sort command, with multiple sorting algorithms
Documentation
  • Coverage
  • 0%
    0 out of 31 items documented0 out of 15 items with examples
  • Size
  • Source code size: 335.41 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.2 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • yildirimmurat/ccsort
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • yildirimmurat

Unix Sort Tool Clone

Crates.io

This is a clone of unix sort tool

The tool is used through the command line with the command ccsort

Steps to Create and Use the Tool

1. Compile the Program

First, build the program by running the following command:

cargo build --release

2. Move the executable to a directory in your PATH

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/

3. Verify the installation

To verify the installation, check if the executable is accessible from anywhere in your terminal:

which ccsort

4. Usage

ccsort [options] <filename>

Available Options

  • -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

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributions

Contributions are welcome! Feel free to open issues or submit pull requests to improve the tool. To contribute:

  1. Fork the repository.
  2. Create a new branch.
  3. Make your changes.
  4. Submit a pull request.

Credits

Many thanks to John Cricket for his Coding Challenges, which inspired this solution.