Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (7 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.21.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/coreutils/sort.c

    r2725 r3232  
    1212 * http://www.opengroup.org/onlinepubs/007904975/utilities/sort.html
    1313 */
     14
     15//usage:#define sort_trivial_usage
     16//usage:       "[-nru"
     17//usage:    IF_FEATURE_SORT_BIG("gMcszbdfimSTokt] [-o FILE] [-k start[.offset][opts][,end[.offset][opts]] [-t CHAR")
     18//usage:       "] [FILE]..."
     19//usage:#define sort_full_usage "\n\n"
     20//usage:       "Sort lines of text\n"
     21//usage:    IF_FEATURE_SORT_BIG(
     22//usage:     "\n    -b  Ignore leading blanks"
     23//usage:     "\n    -c  Check whether input is sorted"
     24//usage:     "\n    -d  Dictionary order (blank or alphanumeric only)"
     25//usage:     "\n    -f  Ignore case"
     26//usage:     "\n    -g  General numerical sort"
     27//usage:     "\n    -i  Ignore unprintable characters"
     28//usage:     "\n    -k  Sort key"
     29//usage:     "\n    -M  Sort month"
     30//usage:    )
     31//usage:     "\n    -n  Sort numbers"
     32//usage:    IF_FEATURE_SORT_BIG(
     33//usage:     "\n    -o  Output to file"
     34//usage:     "\n    -k  Sort by key"
     35//usage:     "\n    -t CHAR Key separator"
     36//usage:    )
     37//usage:     "\n    -r  Reverse sort order"
     38//usage:    IF_FEATURE_SORT_BIG(
     39//usage:     "\n    -s  Stable (don't sort ties alphabetically)"
     40//usage:    )
     41//usage:     "\n    -u  Suppress duplicate lines"
     42//usage:    IF_FEATURE_SORT_BIG(
     43//usage:     "\n    -z  Lines are terminated by NUL, not newline"
     44//usage:     "\n    -mST    Ignored for GNU compatibility")
     45//usage:
     46//usage:#define sort_example_usage
     47//usage:       "$ echo -e \"e\\nf\\nb\\nd\\nc\\na\" | sort\n"
     48//usage:       "a\n"
     49//usage:       "b\n"
     50//usage:       "c\n"
     51//usage:       "d\n"
     52//usage:       "e\n"
     53//usage:       "f\n"
     54//usage:    IF_FEATURE_SORT_BIG(
     55//usage:        "$ echo -e \"c 3\\nb 2\\nd 2\" | $SORT -k 2,2n -k 1,1r\n"
     56//usage:        "d 2\n"
     57//usage:        "b 2\n"
     58//usage:        "c 3\n"
     59//usage:    )
     60//usage:       ""
    1461
    1562#include "libbb.h"
     
    173220#else
    174221    /* This curly bracket serves no purpose but to match the nesting
    175        level of the for () loop we're not using */
     222     * level of the for () loop we're not using */
    176223    {
    177224        x = *(char **)xarg;
Note: See TracChangeset for help on using the changeset viewer.