aboutsummaryrefslogtreecommitdiff
path: root/applets/usage.h
diff options
context:
space:
mode:
authormarkw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-04-17 18:56:18 +0000
committermarkw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-04-17 18:56:18 +0000
commita3da28877a48a5391a791304d5ea1fc7e40808c1 (patch)
tree1384fdafb928c700cba166f7e3609b516d5b7287 /applets/usage.h
parent6821ee60c553c0ac4e73d50d71e4d17cceb17547 (diff)
downloadbusybox-w32-a3da28877a48a5391a791304d5ea1fc7e40808c1.tar.gz
busybox-w32-a3da28877a48a5391a791304d5ea1fc7e40808c1.tar.bz2
busybox-w32-a3da28877a48a5391a791304d5ea1fc7e40808c1.zip
Applied patch from I.Q. to add sort -u as a feature.
git-svn-id: svn://busybox.net/trunk/busybox@2363 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'applets/usage.h')
-rw-r--r--applets/usage.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/applets/usage.h b/applets/usage.h
index f375dfd19..1e3023d1f 100644
--- a/applets/usage.h
+++ b/applets/usage.h
@@ -1356,15 +1356,24 @@
1356 "[2 second delay results]\n" 1356 "[2 second delay results]\n"
1357 1357
1358 1358
1359#ifdef BB_FEATURE_SORT_UNIQUE
1360 #define USAGE_SORT_UNIQUE(a) a
1361#else
1362 #define USAGE_SORT_UNIQUE(a)
1363#endif
1359#ifdef BB_FEATURE_SORT_REVERSE 1364#ifdef BB_FEATURE_SORT_REVERSE
1360 #define USAGE_SORT_REVERSE(a) a 1365 #define USAGE_SORT_REVERSE(a) a
1361#else 1366#else
1362 #define USAGE_SORT_REVERSE(a) 1367 #define USAGE_SORT_REVERSE(a)
1363#endif 1368#endif
1364#define sort_trivial_usage \ 1369#define sort_trivial_usage \
1365 "[-n]" USAGE_SORT_REVERSE(" [-r]") " [FILE]..." 1370 "[-n" USAGE_SORT_REVERSE("r") USAGE_SORT_UNIQUE("u") "] [FILE]..."
1366#define sort_full_usage \ 1371#define sort_full_usage \
1367 "Sorts lines of text in the specified files" 1372 "Sorts lines of text in the specified files\n\n"\
1373 "Options:\n" \
1374 USAGE_SORT_UNIQUE("\t-u\tsuppress duplicate lines\n") \
1375 USAGE_SORT_REVERSE("\t-r\tsort in reverse order\n") \
1376 "\t-n\tsort numerics"
1368#define sort_example_usage \ 1377#define sort_example_usage \
1369 "$ echo -e \"e\\nf\\nb\\nd\\nc\\na\" | sort\n" \ 1378 "$ echo -e \"e\\nf\\nb\\nd\\nc\\na\" | sort\n" \
1370 "a\n" \ 1379 "a\n" \