2 releases

Uses new Rust 2024

0.1.34 Aug 20, 2025
0.1.32 Aug 13, 2025

#44 in #cat

50 downloads per month
Used in younix

Apache-2.0

4KB

Younix sort Command

The sort command in Younix sorts lines in a file, similar to the Unix sort utility. It supports reverse and numeric sorting options.

Usage

younix sort [OPTIONS]

Options

Option Description
-f, --file <FILE> File to sort (default: .)
-r, --reverse Sort in reverse order
-n, --number Sort numerically
-h, --help Print help information

Examples

  • Sort data.txt alphabetically:

    younix sort -f data.txt
    
  • Sort data.txt in reverse order:

    younix sort -f data.txt -r
    
  • Sort numbers.txt numerically:

    younix sort -f numbers.txt -n
    

Dependencies

~1.8–6.5MB
~143K SLoC